Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I clear an array?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01073679
Message ID:
01074000
Views:
11
>Is there a function that clears the elements of an array? I'm using ADEL() to clear each element one at a time, but there's got to be a more efficient way.
>
>Thanks for reading!

Just re-dimension it to 1 element and set it to .F..
DIMENSION myarray[1]
myarray = .F.
That'll do it.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform