Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00878606
Message ID:
00878610
Views:
19
I figured out what I did wrong. The code I listed was in the LOAD event instead of ACTIVATE. Thanks for your help, though.

Ken


>Ken,
>
>It's much easier to do with a query.
SELECT * FROM mytable ;
>  INTO ARRAY myarray
>
>>I'm trying to load an array with the contents of a table. The table has 5 records and four fields. My code is:
>>DIMENSION myarray(5,4)
>>SELECT mytable
>>GO TOP
>>COPY TO ARRAY myarray
>>DISPLAY MEMORY LIKE MYARRAY = nothing.
>>If I dimension the array(4,4) the first 4 records populate the array.
>>
>>What am I doing wrong?
>>
>>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform