Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy array in variable
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00649271
Message ID:
00649277
Views:
16
Which VFP version you're using?

In VFP6 and earlier I would do:
local array myArray[1]
lnElements=myFunction(@myArray)

myFunction
lparameter taArray
external array taArray
dimension taArray[5,10] - redimension it
........
return myNewNumber
In VFP7 function can return an array and you don't have to declare it before call of the function.



>Hi everybody,
>
>I try to do the following :
>
>Local MyVariable
>MyVariable = MyFunction()
>
>
>MyFunction will return an array, but I don't know how much items there will be in my array. Am I better to use an object for that or there is a way to do it the way I try to do it ?
>
>Thanks in advance !
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform