Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Variable Values From One Oner for to Another For
Message
 
To
12/10/1999 11:02:52
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00275448
Message ID:
00275510
Views:
18
>I have a parent/owner form which opens databases, defines recordsets, and declares and populates certain variables.
>
>After loading another child form over the above mentionned parent/owner form I lose the variable values and the objects created including any recordeset, even if they are declared as Public.
>
>1. How can I use the same recordset in the child form (code) without redefining it, and without creating a new workspace?
>
>2. How can I see the values of the variables withiin the child form (code) which were previously defined on the parent/owner form?

When declaring a public variable in a form, other forms can see it if you use the object.property syntax like: ParentForm.Var1.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform