Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acopy function
Message
De
19/06/2000 17:41:03
 
 
À
19/06/2000 16:03:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00381952
Message ID:
00381990
Vues:
14
Apparently, VFP expects the destination array to be large enough to receive the source array. The help file doesn't say anything about expanding the size of the destination array. FWIW, FP2.6 exhibits this same behavior.

Dan

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform