Array Name Cannot Contain "M" and Period ("M.<Name>")

Last reviewed: June 27, 1995
Article ID: Q92968
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

In FoxPro, an application can refer to a memory variable by its name or by its name preceded by the letter "m" and a period. However, this technique does not apply to an array. An attempt to refer to an array in the "m.<array_name>" format produces one of the following error messages:

   Syntax Error

   Unrecognized Phrase/Keyword in Command

   Variable <Name> Not Found

MORE INFORMATION

Steps to Reproduce Error

  • Enter the following command in the Command window:

          dimension m.arr(5)
    

    A "Syntax Error" message appears.

  • Enter the following command in the Command window:

          =adir(m.arr,"C:\*.*")
    

    A "Variable 'ARRAY' Not Found" error appears.

  • Enter the following command in the Command window:

          use c:\foxpro2\tutorial\customer.dbf
          select * from customer into array m.arr
    

    An "Unrecognized Phrase/Keyword in Command" error appears.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a character errmsg
err msg
KBCategory: kbenv kbprg kberrmsg kbprb
KBSubcategory: FxenvMemory


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.