Microsoft KB Archive/92968

From BetaArchive Wiki

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

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


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.