Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Values of fields
Message
From
05/08/2002 13:13:00
 
 
To
05/08/2002 12:42:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00686213
Message ID:
00686227
Views:
44
Steven,

Like Yuri said, SCATTER may do what you want. It will put all fields in an array. If you are trying to grab only some of them, use the eval() function, see below:

>I have a table with fields named dtdel1, dtdel2, dtdel3, dtdel4 etc.
>
>I want to loop through these fields and create an arry of values.
>
>Example:
dimension gnx(10)
for x = 1 to 10
    gnx(x) = eval("mytable.dtdel"+transform(x))
next x
>
>Can someone help me with code that will work?
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform