Microsoft KB Archive/153628

= PRB: Exclamation Mark in Folder Name Causes Genmenu Error =

Article ID: 153628

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b for Macintosh
 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q153628



SYMPTOMS
If you generate a menu in a folder when name of that folder contains an exclamation point (!), the following error appears:

File ' : : .DBC' does not exist. Line number 649

Here 'hard drive name' is the name of the Macintosh hard drive, 'folder name' is the name of the folder up to the exclamation point, and 'file name' is the text after the exclamation point. After you click the OK button, another error appears:

Menu is invalid

Line number 657

Here 'file name' is the name of the menu file that Genmenu.prg attempted to create.

The same errors occur in Visual FoxPro for Windows; however, the line numbers and the path structures differ. Remove the exclamation point from the folder name.



CAUSE
The Genmenu program has difficulty parsing a path that contains a folder name that contains an exclamation point. The program is treating the exclamation point as a separator between a database and a table name.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Problem
 Create a folder called "Test!" (without the quotation marks).  Type the following in the Command window: Create Menu Test1  Choose Quick Menu. Save the menu in the Test! folder, and attempt to generate the source code. The errors appear.

Keywords: kbbug kbfix kbvfp500afix kbprogramming kbprb KB153628

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.