Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variables in Forms
Message
De
07/03/1998 14:03:30
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
 
 
À
07/03/1998 00:45:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00083180
Message ID:
00083228
Vues:
16
>VFP 3.0 Win95; Pentium 32Mb RAM
>I am unable to access variables in a form which is run using DO FORM from the calling program where I have declared those variables as PUBLIC. At times these variables are avaialable at the beginning of certain events like 'Init', Command-'Click' etc. but NOT FOUND in some user-methods created for the same form. I have tried to declare these variables PUBLIC in the Init event, yet somewhere along the sequence of events, the variables are 'lost', and the form's user-methods give NOT FOUND. Strangely, when I try to debug using Trace and Debug windows, the variables are lost even at earlier events/methods where they were otherwise available.
>I find that, when debug/trace windows are open even temporary cursors opened in a procedure in another prg are automatically closed!
>Can anybody help? Thank you.

I declare public memvars in a beginning .prg that calls all other programs, forms, etc. Have not had any such problems. However, if there are any clears or releases in any forms, etc., as Cetin advised, then you've got problems.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform