PRB: "Invalid Variable Name" After Migrating Screen

Last reviewed: May 16, 1996
Article 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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.