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:
00649333
Views:
20
>Thanks a lot Nadya,
>
>It works like that.
>
>Is my idea good to create an object in MyFunction and return it to MyVariable ? For me there's no difference since I do it from scratch and the code does not appear to be more complicated in any way, so I will choose the better way !
>
>Thanks again
>
>Regards

I would create an object in the calling procedure and update its properties in the function. I would pass this object into the function, e.g. (untested idea)
myMain program

myObject=newobject(...)
=myFunction(myObject)
?myObject.myArray[1]

function myFunction
lparameter toObject
toObject.AddProperty('myArray[5]')
...
return
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