Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field value getting dropped
Message
De
23/11/1999 13:27:45
 
 
À
23/11/1999 13:14:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00294440
Message ID:
00294446
Vues:
21
>I'm working in a simple screen that contains only some text, three checkboxes and a command button. The control source for the checkboxes are memory variables and the value property for each of the boxes is set as .F. When the command button is pressed, a program is run and which sections are executed is based on the control source(memory variable) values from the checkboxes. The problem that I am having is when I tab through each of the checkboxes and then press the command button, the values from the checkboxes are passed properly. However, If I just click on select checkboxes with the mouse, skipping over others entirely and then pressing the command button, I get an error message saying that the control source field(memory variable) could not be found.
>
>Does anyone know why?
>
>Wes Hopkin

The variable has probably gone out of scope. Either use PUBLIC variables (not recommended) or make your form Modal, and define/initialize your PRIVATE variables in the .PRG that calls up your form. Or better yet, don't use variables! Creat properties on your form and use these properties for your values.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform