Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing the array
Message
 
 
To
05/11/2002 01:20:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00718819
Message ID:
00718827
Views:
26
You can dynamically dimension arrays at runtime

dimension laX[5] && now 5 elements
...
dimension laX[50] && now 50 elements
laX = .f. && fill with false
laX = .null. && fill with nulls
...
dimension laX[reccount()] && don't have to use static values

If you increase the size of the array existing data is preserved. Although this leads to issues when the array is two dimensional.

You can do the same things to object property arrays.

>i want to define new arrays in the run the run time and clear content of the array?.kindly help me in this regard
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform