Property Integer Current_Radio
| Read Access: | Get Current_Radio to IntegerVariable |
| Write Access: | Set Current_Radio to IntegerVariable/Value |
Current_Radio Determines which radio object is selected. Current_Radio is 0-based.
If the focus currently resides within the radio group, the focus will be switched to the selected radio object. Current_Radio returns the item number of the currently selected radio item.
This sample shows how you could get the selected (current) radio object from a RadioGroup in the OnConstrain event of a DataDictionary Object (DDO) and change constraints based on that selection.
Procedure OnConstrain
Integer iSelRadio
Get Current_Radio of oJobsRadioGroup to iSelRadio
If (iSelRadio = 0) Begin
Constrain Jobs as Jobs.Active eq 0
End
Else If (iSelRadio = 1) Begin
Constrain Jobs as Jobs.Active eq 1
End
End_Procedure