Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Share objects between forms
Message
From
03/03/2000 15:48:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/03/2000 15:06:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00341441
Message ID:
00341477
Views:
18
>Hello,
>
>I have a form with a property which holds a custom object.
>When I open another form, I would like to be able to access/change the properties of this custom object.
>What is the correct way to do this?
>
>Thanks for any help in advance!


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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform