Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to do this?
Message
De
09/09/1999 12:20:20
 
 
À
09/09/1999 11:20:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00262894
Message ID:
00262952
Vues:
17
>
FOR i=1 to 4
>  STORE <i>something to store</i> TO ('thisform.txtBox'+ALLTRIM(STR(i))+'.Value')
>ENDFOR
Hey- I didn't know you could use name substitution with STORE... cool.

Here's how I would do it:

FOR i = 1 TO 4 && or whatever
otxt = EVAL("THISFORM.TextBox" + ALLTRIM(STR(i))
otxt.Value = "Whatever"
ENDFOR
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform