Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

invoke method(#wordapp.Selection.MoveRight) Unit(1) Count(1)






*Add a new row to the table

invoke method(#wordapp.Selection.InsertRows)

endselect

*Delete the last empty row of the table

invoke method(#wordapp.selection.Rows.Delete)






*Enable and disable components

set com(#gpbx_4 #ltvw_2 #savebtn #closebtn #printbtn) enabled(true)

set com(#gpbx_3 #labl_2) enabled(false)

clr_list #ltvw_1

set #addbtn enabled(true)


execute infmessage 'Employee details have been added to document.'

ENDROUTINE


EVTROUTINE HANDLING(#LTVW_2.ItemGotFocus)

*activate the selected document

invoke method(#wordapp.documents.item<#std_text>.activate)