Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array property as a referenced parameter to a function
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Array property as a referenced parameter to a function
Divers
Thread ID:
00047926
Message ID:
00047926
Vues:
82
How can I send an array wich is a property of a form (ie: Thisform.aMyarray) to a function as a referenced parameter, I'm trying to do this: lnReturnedValue = MYFUNCTION(@ThisForm.aMyarray) but it doesn´t work

I've been doing this but it can be a lot of overhead processing

local laMyarray(1), lnReturnedValue
=acopy(ThisForm.aMyarray,laMyarray) && copies the array to a temporary local variable
lnReturnedValue = MYFUNCTION(@laMyarray) &&the function changes the array
=acopy(paMyarray,ThisForm.aMyarray) && returns the temporary array to the property

Any help?
Jorge Flores
From the Amigo Country
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform