Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable button on screen
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01006243
Message ID:
01006251
Views:
15
>This is a simplified example.
>
>I have a screen that displays the data from table1. There is a NEXT button on the screen that advances to the next record in table1. There is also a LOOKUP button that I want to disable and not allow to click based on the value of table1.region. If the region = '1' want to enable, otherwise disable. I know this should be easy, but it has been awhile since I have coded and this is taking me way to long.
>
>Thanks
>
>Brenda

May be in click event on NEXT button after the SKIP in table1
thisform.LookUp_button.enabled = IIF(table1.region = '1',.T.,.F.)
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform