Microsoft KB Archive/40409

= BUG: Mac QuickBasic Renamed File Reverts to Old Compiled Name =

Article ID: 40409

Article Last Modified on 11/21/2006



This article was previously published under Q40409



SYMPTOMS
If you rename a QuickBasic source file in the Finder (by making a Duplicate with the name &quot;Copy of filename,&quot; or by just modifying the name in the Finder), then QuickBasic fails to update the MBAN 0 resource (stored in the source file) with the new application filename on a Macintosh II. As a consequence, when QuickBasic compiles the program, it will output a compiled application name using the old name instead of the new name.

This problem occurs only on a Macintosh II computer. The problem does not occur on an SE or Plus, where the MBAN 0 resource is properly updated with the new name.

Microsoft has confirmed this to be a bug in Version 1.00. We are researching this problem and will post new information as it becomes available.

To work around the problem, select the COMPILE AS... option instead of COMPILE on a Macintosh II. COMPILE AS... lets you rename the file as desired.



MORE INFORMATION
Note: QuickBasic stores the name of the (potential) compiled application in the MBAN 0 resource of the source file of every program. The MBAN resource is documented in the README file and this KnowledgeBase (Query for MBAN).

The following steps duplicate the problem on a Macintosh II:

 On the Macintosh II Desktop, duplicate the CONES sample program with DUPLICATE from the Finder's FILE menu. This creates &quot;Copy of CONES.&quot;

The problem also occurs if you rename the file by editing the filename in the Finder. Load the &quot;Copy of CONES&quot; into QuickBasic (or the renamed file). The title bar shows: LISTING of &quot;Copy of CONES&quot;. Compile the program with the COMPILE option (not with COMPILE AS...) from the RUN menu. Now the APL application improperly has the following original name:

&quot;CONES APL&quot;

The name should be &quot;Copy of CONES APL&quot;.

Additional query words: MQuickB

Keywords: kbbug KB40409

-

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

© Microsoft Corporation. All rights reserved.