General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only