Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables from forms to forms
Message
From
05/07/2000 07:20:55
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00387943
Message ID:
00388256
Views:
10
Hi Kelly,

You can say in source form
      Statement 1:
      ------------
      DO FORM frmTarget With var1, var2, ..., varN
In the Init event of target form you can say
      Statement 2:
      ------------
      PARAMETERS myVar1, myVar2, ... 
            or 
      LPARAMETERS myVar1, myVar2, ...
However, you should pay attention to the fact the form's init event fires only after the load event. This means you will not have the value in the passed variable in load event.

You can put the Statement 1 in the source form's unload event if you do not want to keep the source form when target form is loaded. If you want to keep the source form also, then you do not need the statement 1 at all and in target form you can say
      myNewVariable = sourceform.myVar1

      where myVar1 is defined in Source form property sheet
Regards
Vijay

>I need a variable passed from one form to another without using public >variable, but needs to be used in the targets forms load event. How would I do >that?

>THnaks Kelly
Previous
Reply
Map
View

Click here to load this message in the networking platform