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:
00589562
Views:
33
The array size is limite to 65,000 elements. You can find it in the help under 'Visual FoxPro System Capacities'.

>Am I understanding you right in that you're suggesting using an array to hold the data? I suppose that would work as long as it didn't get big enough to run out of memory. Is there a limit to the size of an array? I checked the help file, but didn't see anything.
>
>I'm still looking at that ADO, too, but it's making my head swim. :) Seems like an awful lot of work just to get data from one object to another.
>
>Thanks,
>
>Michelle
>
>
>>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
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform