Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Vars Declared in Init Scope
Message
 
 
À
16/12/2003 10:55:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00859506
Message ID:
00859514
Vues:
13
Hy Tracy,

The private variables declared in a method are released at the end of the method. The only difference between LOCAL and PRIVATE variables in this case, that PRIVATE variables are visible in any called methods/programs.

>I thought all variables declared private in a form's init were supposed to be visible throughout the life of the form? Yet both variables created below do not exist after the init is exited and focus is on any object on the form.
>
>
>PRIVATE lvar1
>lvar1 = .T.
>
>DODEFAULT()
>
>PRIVATE lvar2
>lvar2 = .T.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform