Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of variables
Message
 
 
À
13/05/1998 15:51:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00099185
Message ID:
00099227
Vues:
17
Kevin,

Use the Form, New Property menu item to create a custom form property. then you reference it everywhere like any other form property i.e. thisform.LastSelect

>I am using vfp3.
>Is there a simple way I can create a variable in the Load or Activate method of a form that other methods of that form can see but the scope of the variable is encapsulated within the form rather than the function?
>Actually what I want to achieve is select-ing a work area, then restoring that work area when the form is released.
>
>Activate: lastselect = select()
> select aliasforthisform
>Release: select(lastselect)
>
>I don't want a generically named global variable because I'm trying to avoid conflicts should other forms be open and doing the same thing.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform