Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return Array
Message
De
22/11/1999 10:16:50
 
 
À
22/11/1999 08:47:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00293849
Message ID:
00293889
Vues:
29
Hi John.

>> How could I return an array from procedure? <<

If you find that you need to do this quite often, you could create a paramter class and add the property aParameters[1] to the class. The, just put this code in its init:

LPARAMETERS taParameters

*** Copy array passed by reference, before it goes out of scope
=ACOPY(taParameters, THIS.aParameters)

Then whenver you need to return an array from anay procedure, all you need to do is:

RETURN CREATEOBJECT('< Parameter Class Name >', @< Array Name to return >)

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform