Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Values of fields
Message
From
05/08/2002 20:27:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
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:
00686377
Views:
39
>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:
>Dime gnx(10)
>For x = 1 to 10
>gnx(x)=mytable.dtdel(x)
>Next x
>
>Can someone help me with code that will work?

SCATTER has been suggested.

As an alternative, allow me to mention SCATTER NAME. This will create an object:
SCATTER NAME loRecord
Will create "object" loRecord, with properties like loRecord.Field1, etc.

This is not an array, but I find it more practical to transfer information. See also GATHER NAME.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform