Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an array
Message
De
11/11/2002 10:28:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00720959
Message ID:
00721014
Vues:
12
How can I return value without passing array by reference?
I have VFP 7.0.


>In VFP prior version 7 you cannot return array at all. In VFP7 you can but with some limtations. It realy make sense to use in methods only.
>In any VFP version you can pass array by reference into function and populate it there.
= UDF(@aSomeArray, para1, para2,...)
>
>>How can I return an Array?
>>
>>For example:
>>
>>aSomeArray = UDF(para1, para2,...)
>>
>>
>>
>>UDF()
>>   LPARAMETERS para1, para2....
>>   some code for filling an array...
>>   RETURN WHAT????
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform