Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return aMyArray
Message
From
06/04/1999 15:08:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00205722
Message ID:
00205733
Views:
18
>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
Map
View

Click here to load this message in the networking platform