Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Setall
Message
 
To
06/03/2001 10:18:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482223
Message ID:
00482241
Views:
13
>Hi all:
>
>Moving slowly from 2.6 to VFP, I'm trying to learn about SetAll. I've created a form (using quick form) and placed a command button on the form. The intent is to either Disable or Enable all the textboxes which were created. In the click event of the command button I have placed
>
>Thisform.SetAll('enabled',IIF(This.Caption="Enable",.T.,.F.),"Textbox")
>This.Caption=IIF(This.Caption="Enable","Disable","Disable")
>
>
>When I click on the button, the caption changes, but none of the controls do.
>
>What have I missed????
>
>Thanks to all..........Rich
Thisform.SetAll('enabled',IIF(This.Caption="Enable",.T.,.F.),"Textbox")
This.Caption=IIF(This.Caption="Enable","Disable",<b>"Enable"</b>)
If your textboxes initially are enabled, you probably need to change the initial button caption to "Disable"
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform