Microsoft KB Archive/110244

{| = PRB: "Invalid Variable Name" After Migrating Screen =
 * width="100%"|

ID: Q110244

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS
After you have used the FB+Migrate application to convert a FoxBASE+ for the Macintosh screen to FoxPro for Macintosh, the following error message occurs when you are editing a picture object:

Invalid Variable Name

CAUSE
When the FB+Migrate application converts a FoxBASE+/Mac picture, a FoxPro for Macintosh picture push button is created if the picture resource does not exist in the FoxBASE+/Mac FOXUSER resource file. A numeric variable name may be assigned to this push button.

Double-clicking the push button and then choosing OK will generate the "Invalid Variable Name" error, since memory variable and field names must begin with a letter.

RESOLUTION
To work around this problem, do one of the following:

 Change the variable name so that it begins with a letter, and then initialize the variable in the setup code of the screen. -or- Delete the push button and add a picture field to the screen in its place.

Additional reference words: FoxMac 2.50b KBCategory: kbinterop kbprg kbprb KBSubcategory:
 * }