Versions Compared

Key

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

...

Code Block
/* In the CLICK event of BUTTON_SEARCH, increment the user-defined @COUNTER property each time the button was clicked.  Display the number of clicks in the edit line EL_COUNTER. */
 
cntr = Get_Property(@window : '.BUTTON_SEARCH', '@COUNTER')
cntr += 1
retval = Set_Property(@window : '.BUTTON_SEARCH', '@COUNTER', cntr)
retval = Set_Property(@window : '.EL_COUNTER','DEFPROP','The search button was clicked ' : cntr: ' times.')

See Also

CLICK event