Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ACopy() question
Message
De
27/05/2001 07:10:41
 
 
À
27/05/2001 06:53:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00511880
Message ID:
00511881
Vues:
16
It's ok I've figured it out

All I have to do is the following :
Dimension Thisform.wkArr[1]
=aCopy(wkarr, thisform.wkarr)
I (mistakenly) thought that aCopy didn't enlarge the destination array if it was too small.

Will

>Hi all,
>
>I have a form property thisform.WkArr[52,2]
>
>If I copy it to an array (so it can be passed by reference)
>
>=aCopy(Thisform.Wkarr, laWkarr )
>=Myfunc(@laWkArr)
>
>But then change the size of the array in the function
>
>Lets say laWkarr gets smaller in the function
>If I want to copy it back into the form property
>
>=aCopy(laWkArr, Thisform.wkArr)
>
>This will leave any extra array elements after the end of laWkarr
>
>My question is.. what's the best way to resize Thisform.wkArr before doing the aCopy back into it.
>
>If it was a normal array I could do the following
>Release wkArr
>=aCopy(laWkArr, wkArr)
>
>But with a form property, how do I get it to a state that aCopy will think is empty (and therefore re-size it automatically)
>
>Any suggestions appreciated
>
>Will
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform