Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Arrays and Classes
Message
From
21/01/2000 16:50:44
 
 
To
21/01/2000 16:27:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00321132
Message ID:
00321147
Views:
27
Hi Morys,

>How do I pass an array to a class?
>I am trying to do something like this:
>oMyObject = CREATEOBJECT('MyObject',TheArray)

For arrays you must pass by refrence:

oMyObject = CREATEOBJECT('MyObject', @TheArray)

Also, if you plan to return an array, it is not possisble, it is done the same way: create a blank array, pass it by refrence and have the method or program modify the passed array. Then you when you come back, the local array will have been modified from the proc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform