Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Acopy function
Message
From
19/06/2000 16:03:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Acopy function
Miscellaneous
Thread ID:
00381952
Message ID:
00381952
Views:
46
When I try this:

dimension laarray(9)
dimension laarray2(3)

acopy(laarray,larray2)

it fails with the error: subscript is outside defined range.
I ASSUMED this was because laarray has more elements than laarray2 and VFP wasnt resizing laarray2 to compensate for the additional elements.

However, I try this:

dimension laarray(9)
dimension laarray2(1)

acopy(laarray,larray2)

and now the two arrays are identical. VFP increased the size of laarray2 to accomodate for the additional elements.

Anyone know why this is??

Jon
Next
Reply
Map
View

Click here to load this message in the networking platform