Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement