General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only