Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an Array from a Function
Message
De
29/02/2000 13:04:37
 
 
À
28/02/2000 23:54:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338850
Message ID:
00339264
Vues:
20
Correct me if I'm wrong, as I'm sure you will, but isn't :

FUNCTION myFunction
LPARAMETERS lcParam1, lcParam2
LOCAL lcThisFunctionLocalVariable
lcThisFunctionLocalVariable = lcParam1 + lcParam2
Return lcThisFunctionLocalVariable

passing a LOCAL up the chain.

>You can't return an array from a function except as a member of an object; however, if you pass something by reference to a function or method, modifying the parameter within the function or method results in changing the referenced item. You also cannot use the @ within a return, and can't pass something created as LOCAL or PRIVATE up the chain; only PUBLICs can be seen above the level at whichthey are created.

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform