ID: Q121344
The information in this article applies to:
The error message "Variable 'myvar' not found" occurs in the VALID code snippet when the variable was initialized in the WHEN code snippet.
To solve this problem, do one of the following:
      PUBLIC myvar
-or-
1. Open CUSTOMER.DBF by issuing the following command in the Command
   window:
     USE <FoxPro_directory>\tutorial\customer.dbf
3. Edit the WHEN code snippet of the CONTACT field. Select Procedure and
   enter the following commands:
      m.myvar = customer.contact
      WAIT WINDOW customer.contact
      WAIT WINDOW m.myvar
   enter the following command:
      WAIT WINDOW customer.contact
      WAIT WINDOW m.myvar
   command in the Command window:
       DO test9.spr
   press ENTER once for each window that appears. Press ENTER again to
   leave the field. One WAIT window will appear with a name, and then the
   error message will appear.
Last Reviewed: August 28, 1995