General information
Category:
Coding, syntax & commands
>>Is there a way in fox to return or pass an array? When I return an array I only get the first element. (weak) :(
>>
>>Eric K.
>Eric,
>Arrays should be passed by reference. Default is by value and you don't need to change it, just add an @ in front of the var or call with "with".
>do myprg with myArray && Passed by reference
>=myprg(myArray) && Passed by value - only first elem value
>=myprg(@myArray) && Passed by reference
>Return is the same way but this is more complicated because if not defined public array would be out of scope (implicit release). Better define in caller level.
>Cetin
Actually, I want to return an array from an OLE server to a client program so I'll have an array defined in the clients method before I call the OLE server method. I'll try using @ in any case.
Thanx,
Eric K.
Previous
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