Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass data from one object to another
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00589517
Message ID:
00589556
Views:
17
Michelle,

You could pass an object around;
* Object 1 method
loParms = CreateObject("Relation")
loParms.AddProperty(aData(10,10))
Object2.DoSomething(loParms)
* Now Object 2 does some work and puts its 
* results in the aData property of loParms
* so here we can ...
FOR lnCnt = 1 TO ALEN(loParms.aData,1)
   *Read the data and do what ever we want with it

ENDFOR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform