Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables in Forms
Message
De
02/04/2000 15:33:04
 
 
À
02/04/2000 15:24:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00354056
Message ID:
00354058
Vues:
18
>I display then this variable as a textbox with .controlsource property set to variable name on my form and everything seems to be fine, but there's a little problem that I don't understand. First time the form runs there's an empty textbox, but the second time everything is OK - the textbox contains what in variable was.

Your varialbes may be going out of scope after the Load(), how do you declare your variables?

>So I put the variable "today" out of my form and just before i run the "do form Myform" I blank my variable (today="") and the program works fine all the time.

Do you mean from the command window? The reason it works when you define the variable in the command window is because the command window creates PUBLIC variables, which won't go out of scope.

The best way to handle this, is to not use variables, use form properties or a cursor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform