onChange example
The following onChange event handler for a RadioButton sets the wrap property of an editor control on the same form to match:
function wrapCheckbox_onChange( )
form.editor1.wrap := this.value
In this example, three RadioButtons, whose text properties happen to match the names of the index tags of the current table, use the same onChange event handler. When a different RadioButton is selected, onChange fires twice: once for the RadioButton that was deselected, and once for the button that is selected. The value of the RadioButton is checked to set the index for the RadioButton that was clicked.
function indexRadios_onChange
if this.value
set order to ( this.text )
endif