Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acopy function
Message
De
19/06/2000 16:03:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Acopy function
Divers
Thread ID:
00381952
Message ID:
00381952
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform