Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning multiple values form a function
Message
 
 
À
03/05/2000 14:40:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00365646
Message ID:
00365727
Vues:
20
>>OOPS.. thought we were talking about returning multiple variables from a FORM... but still, returning a string and parsing will work.
>>
>>Also, in reference to the arguments about an array not being in the right scope (ie its created in the function and then when you try to pass it back it is gone so you only get the first element), why not create the array outside the function and pass it by reference and then return it back again (@laArray[])? Just a thought.
>
>That's fine also. But if the array is declared PRIVATE in the calling program or higher, you don't have to pass anything, just reference it. I'm sure there's a lot of personal preference here that will determine how each individual would implement this. :-)

Bill/Shawn,
That's not really fine. You can't return a value by reference. VFP will choke on it.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform