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:
00878607
Views:
13
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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform