Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Key Press
Message
From
01/03/2001 19:26:29
 
 
To
01/03/2001 19:14:34
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00480793
Message ID:
00481192
Views:
16
>Hi Jeffrey,
>In the refresh method of the button test the value of the text box. If it conforms to what you want, enable the push button - otherwise disable it.

Or just use the VALID of the textbox and WHEN of the command button to evaluate the status. You can return .F. in the When to disallow selection of the item and update it's Enable state - the only time that the command button's Enable needs to be evaluated is when you leave the textbox if it starts empty and the command button disabled; the only time the state of the command button changes is when the content is updated, which is checked by VALID whenever it's had Focus and the content altered.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform