Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables from forms to forms
Message
De
05/07/2000 07:20:55
 
 
À
03/07/2000 23:37:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00387943
Message ID:
00388256
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform