Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Share objects between forms
Message
From
03/03/2000 16:06:02
 
 
To
03/03/2000 15:48:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00341441
Message ID:
00341492
Views:
24
>
Launch the form with a name clause.
>
>do form form1 name "FirstForm"
>do form form2 name "SecondForm"
>
>*SecondForm.AnyMethod
>FirstForm.AnyPEM
>
>It's better you assign variables to names and keep them somewhere which each new form could access (oApp custom application, _screen etc or public ).
>Cetin

This sounds very good. I made a workaround which I did not expect to work: I send the property (the reference to the object) as parameter to the other form. There I also use a property which holds the object which was sent as the parameter to the INIT(). When I make changes to the object from the called form, the changes will also be in effect in the original form's property, because the property seems just to point to the object.

Can you explain why this works? I expected that the changes were not visible backwards, unless I would send the parameter by reference.
However, I'm happy that this works, although your solution is much more professional.

Christian
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform