-- Setting Variable Radio Group Default value to NULL (with no button checked at every use):
-- Author: A. Razzak Memon
-- Date Created: September 18, 2004

01. Copy both VariableRadioGroup.FRM and VariableRadioGroup.LOB in ConComp Sample directory

    For example: C:\RBTI\RBG7\Samples\ConComp

02. Start RBG7 (Update 77 or higher ...) and CONNect ConComp

03. At the R> prompt:

    INPUT VariableRadioGroup.FRM
    This will add a new form VariableRadioGroup based on the FormTable in ConComp database.

05. At the R> prompt:

    EDIT USING VariableRadioGroup

    Select any value and then click on [Close] button.

    SHOW VAR vRGValue

    Notice the selected value for vRGValue variable.

    Without clearing the value for vRGValue or setting it to NULL, try the same EDIT command again:

    EDIT USING VariableRadioGroup

    Notice that the value is ALWAYS set to null and no radio button is checked by default.

    Now select any value and then click on [Close] button.

    SHOW VAR vRGValue

    Notice the selected value for vRGValue variable.

    Repeat this step as many times as you wish.

    Notice that the value is ALWAYS set to null and no radio button is checked by default.

And here's the magic behind this whole process:

01. VariableRadioGroup form includes the following Custom EEP as an "On Before Start EEP":

    SET VAR vRGValue TEXT = NULL
    RETURN

    And, the following Custom EEP as an "On After Start EEP":

    PROPERTY VariableRadioGroup SET_FOCUS 'TRUE'
    RETURN
