Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Variables in a SCAN
Message
From
15/01/2009 03:27:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01373889
Message ID:
01373937
Views:
21
>Jay,
>
>Why wouldn't you use an array instead? in my opinion much simpler to deal with... but then I don't know your specific requirement :)
>
>
>local laArray,lnX
>select mytable
>lnX=0
>scan all
>  lnX=lnX+1
>  dimension laArray(lnX)
>  laArray(lnX)=mytable.myfield
>endscan
>
Or even simpler
Select myfield from mytable into array laArray
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform