Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass data from one object to another
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00589517
Message ID:
00589558
Vues:
38
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
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform