Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an Array from a Function
Message
De
28/02/2000 23:20:43
Michel Lalonde
Laboratoire Médical Biron
Lachine, Québec, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338850
Message ID:
00338907
Vues:
16
>Then, how i Return an Array from a function?


Call a function with extra ARRAY parameter. This function return the number of element in your extra ARRAY parameter


Example:

*- Declare
procedure xyz (InArray, ResultArray)

...

IF lnResultCount > 0
DEClARE ResultArray[lnResultCount]
ENDIF

Return lnResultCount


*- Call

LOCAL laVal[3], laRes[1]
lnCount = XYZ (@laVal, @laRes)
FOR I = 1 TO lnCount
? laRes[lnCount]
NEXT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform