Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return aMyArray
Message
De
06/04/1999 15:08:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00205722
Message ID:
00205733
Vues:
17
>Bob,
>
>If you pass the array by reference you don't need to return it. The array passed is directly changed by the called routine.
>
>In answer to your specific question, no you cannot return an array in VFP. There are many ways to accomplish the same result. One is to pass by reference like you are doing. Another is to use a parameter object that holds an array property.

Well... My goal was to create a mthod in an automation server that would execute a query and return the result as requested...

XML (String)
SDF (String)
ADO (Object)
Array

But, allas, I guess I will have to create an optional parameter if they want the data as an array. Perhaps I can check to see if the second parameter is an Array, then to put the results in it, if it is one of the above designations return the correct item.

If you have another idea let me know... thanks,
BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform