Microsoft KB Archive/92968

{| = Array Name Cannot Contain &quot;M&quot; and Period (&quot;M.&quot;) =
 * width="100%"|

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 &quot;m&quot; and a period. However, this technique does not apply to an array. An attempt to refer to an array in the &quot;m.&quot; format produces one of the following error messages:

Syntax Error

Unrecognized Phrase/Keyword in Command

Variable  Not Found

Steps to Reproduce Error
  Enter the following command in the Command window: dimension m.arr(5) A &quot;Syntax Error&quot; message appears.   Enter the following command in the Command window: =adir(m.arr,&quot;C:\*.*&quot;) A &quot;Variable 'ARRAY' Not Found&quot; error appears.   Enter the following command in the Command window: use c:\foxpro2\tutorial\customer.dbf select * from customer into array m.arr An &quot;Unrecognized Phrase/Keyword in Command&quot; error appears. 

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