Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables
Message
 
To
19/02/1997 22:28:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00021081
Message ID:
00021262
Views:
43
>>>how do you pass variables between 2 different forms. The problem I am having is that I have 2 form each with a private data session. I want to assign the current record number to a variable and pass that to the other form. any suggestions. thanks fot the help.
>>Don't forget the ever popular PUBLIC memvar. While the new Visual world seems appalled by medieval programming traditions, this is one that will solve many problems if not abused.
>>The variable can be set PUBLIC in the LOAD method of either form (but not BOTH!)
>>HTH
>
>I Hardly use Public Variables, instead I add properties to my application class that they will be available for all forms as public variables.

the only time i use a public var is to track the user's access level because i haven't taken the time to build an application object yet. avoid public vars as much as you can.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform