Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set command and arrays
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124046
Message ID:
00124063
Views:
19
>Hello All,
>When you redimension an array, any values currently held in the array are copied to the resized array.
>
>Which set command eliminates this feature??
>
>I came accross this in one of my apps and I still cna't figure out why it's happening!
>
>Thanks

Sandy,

There is no set commadn, this is how they work. You can get around it by doing something like this;

DIMENSION MyArray(12,4)
MyArray = .F.

Assigning a vlaue to the array name without a row and columnn index assigns that value to all elements of the array.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform