Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables
Message
 
À
19/02/1997 22:28:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00021081
Message ID:
00021262
Vues:
41
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform