Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to do this?
Message
From
09/09/1999 12:20:20
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00262894
Message ID:
00262952
Views:
18
>
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
Previous
Reply
Map
View

Click here to load this message in the networking platform