Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in ACOPY function
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785998
Message ID:
00786191
Views:
14
Yes it does. While looping through a list of tables, I needed to copy the results of AFIELDS in an array property of one object to another array property in another object when this hit me. Thanks for simplifying.

>Hi Mark,
>
>Does following code demonstrates the same bug?
DIMENSION a1[10], a2[5]
>? ACOPY(a1,a2)    && error
>? ALEN(a2)
>
The VFP help states that, "If the destination array already exists, it is redimensioned to the size of the source array" but it's not how ACOPY worked since FOX2.6. It's only true if destination arrays has 1 item.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform