Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an Array from a Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338850
Message ID:
00338964
Vues:
11
Frank,

Try this:

Dimension ArrayOne[20,1]
Dimension ArrayTwo[20,1]
=FuncExample(@ArrayOne) && Passes ArrayOne By reference


Function FuncExample
LParameters laArray
Local laArrayNew
Dimension laArrayNew[20,1]
..
.. && Set laArray elements in function and change value of ArrayOne elements
&& in calling procedure.
..
Return && do not retrun array values. Passing by reference already passed
&& values back.
EndFunc
Ken Wardwell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform