Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Setall
Message
 
À
06/03/2001 10:18:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00482223
Message ID:
00482241
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform