Thank you, Razzak - that works a treat.

Regards,
Alastair.

----- Original Message ----- 
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 18, 2004 2:50 PM
Subject: [RBG7-L] - Re: Forms question: Variable Radio Group defaultvalue


>
> At 08:57 AM 9/18/2004 +0100, Alastair Burr wrote:
>
> >...  I would prefer to have the group displayed with no button checked at
> >every use.
> >
> >Does anybody know if this is possible?
>
>
> Remember, nothing is impossible!
>
> Here's how to assure that the Radio Group default value is always
> NULL (with no button checked at every use):
>
> 01. Use the following URL to download a sample VariableRadioGroup
>      form based on RBG7 ConComp sample database.
>
>      http://www.razzak.com/SampleApplications/VariableRadioGroup.zip
>
> 02. Unzip the file in RBG7 ConComp sample database directory
>
>      For example: C:\RBTI\RBG7\Samples\ConComp
>
>      Two files are included in the zip file:
>
>      VariableRadioGroup.FRM and VariableRadioGroup.LOB
>
> 03. Start RBG7 (Update 77 or higher ...) and CONNect ConComp
>
> 04. At the R> prompt:
>
>      INPUT VariableRadioGroup.FRM
>
>      That 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
>
> Enjoy and make sure to have fun!
>
> Very Best R:egards,
>
> Razzak.
>

Reply via email to