Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Setall
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482223
Message ID:
00482281
Views:
14
>Rich,
>
>I tried your code and it seemed to work for me. Is it possible that you have subclassed the Textbox control? If your textboxes are based on your own class, say "txt", try using that as the last argument to SetAll().
>

Scott: Thanks for your help but.........

I haven't subclassed the textboxes. I looked at the property sheet for them and the Base Class is "Textbox."

My next try was to manually disable some of the controls via the property sheet. The command button now does
Thisform.SetAll("enabled",.T.,"Textbox")
and nothing changes.

I can, however, do a
Thisform.txtMyControl.Enabled = .F.
and that will work.

Any other suggestions????

Thanks for your time...........Rich



>Scott
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform