Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Depending on value for option button, display text box.
Message
From
21/02/2002 12:17:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Depending on value for option button, display text box.
Miscellaneous
Thread ID:
00623234
Message ID:
00623234
Views:
71
I have option buttons on my form class. Depending on the value stored on the table for the option button, I either need to show or hide a text box.

Example:
if optionbutton.value=1, then show text box,
otherwise, hide text box.

As the form shows a record, where do I put the code to either show or hide the text box?

As the user clicks on a 'NEXT' button to go to the next record in the table, form should reflect the record's optionbutton.value & the form should refresh (?) with either the text box shown or not.

I tried to put the code in the form's REFRESH(), but did not work:
IF THISFORM.optionbutton.VALUE=1
THISFORM.textbox.VISIBLE=.T.
ELSE
THISFORM.textbox.VISIBLE=.F.
ENDIF

Can anybody help?
THANKS ALL!
Next
Reply
Map
View

Click here to load this message in the networking platform