>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.