Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private variables in forms.
Message
De
25/11/1998 16:18:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/11/1998 20:45:48
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00160739
Message ID:
00161593
Vues:
22
>I recently ran into some fairly odd behavior in a form. A programmer new to VFP was placing variables directly into the ControlSource.
>
>Not "Thisform.cTestData"
>
>Not "Test.cTestData" ( perhaps refering to a field in a table called "Test" )
>
>But "cTestData".
>
>I tested this myself. The variable does not exist prior to the creation of the form and their is no field that the controlsource was referring to. If I called the screen from the a prg the private variable could be seen through out the form in both methods and properties of the form.
>
>If I called the form directly from the command window, it would create Public variables.
>
>Is this intentional behavior or something to be avoided like the plague.

Yes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform