Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dynamically Resize array.
Message
 
 
To
16/04/2003 11:29:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00778384
Message ID:
00778387
Views:
30
>How do I dynamically resize an array at run-time. I am a VFP newbie, and have no clue as to how to declare an array, and simply add elements within a control loop in my code. I don't know the size needed before the loop is entered (eg. a SQL query returning variable number of records).
>
>Thanks,
>
>Fred Zimmerman

Hi Fred,

You can use DIMENSION command to dimension or re-dimension array. SELECT statement will redimention array automaticaly, if any records are returned.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform