Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable control based on empty textbox
Message
 
To
11/10/2000 23:47:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00428311
Message ID:
00428820
Views:
18
Thank you both!

>>I have a textbox and a checkbox on a form. If there is a value in the textbox I want the checkbox enabled otherwise I want it disabled. I tried placing empty(thisform.text1.value) in the enable property of the checkbox and also tried len(thisform.text1.value)>0 but neither work. I'm not sure why. Thanks for any help!
>
>They don't work because property sheet values are only evaluated on init, and when they are changed. You need to find a place to put some code that sets the enabled property depending on the value of the textbox. Depending on if the textbox is bound or not, You'll need code in the ProgrammaticChange, the Refresh, and the InteractiveChange events to do what you want.
Previous
Reply
Map
View

Click here to load this message in the networking platform