Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use THISFORM in a variable???
Message
 
À
18/12/1996 12:25:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00015509
Message ID:
00015518
Vues:
36
>Dear Visual FoxPro users
>
>I want to to set a value property in a function.
>For example: I want to write "test" in 10 boxes
>with te names txtBox1,....., txtBox10
>
>FOR nNr = 1 TO 10
> cTxtbox = "thisform.txtBox" + nNr + ".value"
> cTxtbox = "test"
>endfor
>
>This code isn't working the way I want, but how do I do?

BTW, if you want to set that value for ALL textboxes on the form (not some of them) you can use thisform.SetAll("Value","Test","Textbox"), but this may be confusing in other case.

Nick
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
Répondre
Fil
Voir

Click here to load this message in the networking platform