Microsoft KB Archive/94261

= Code Remains in VBDOS.EXE After Change in FD.EXE =

PSS ID Number: 94261

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94261



SYMPTOMS
Although you might expect the following to overwrite code added to a form, it does not:


 * You add code to a form while in VBDOS.EXE
 * In the Form Designer (FD.EXE), you start a new project.
 * You save over that form with another and return to VBDOS.EXE.

The code you originally added in VBDOS.EXE is still there.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The following steps reproduce the problem:

 Start VBDOS.EXE. From the File menu, choose New Form. A dialog box appears, choose the OK button to use FORM1.FRM. From the File menu in the From Designer (FD.EXE), choose Exit. A dialog box appears, select Yes to save changes.  In VBDOS.EXE, add the following code to the Load event procedure of FORM1.FRM: Sub Form_Load Beep End Sub </li> Press the F5 key to run the program.</li> End the program by pressing ALT+MINUS or by choosing Close from the File menu.</li> Select FORM1.FRM in the project box and choose Form to view FORM1.FRM.</li> From the File menu in FD.EXE, choose New Project. This discards FORM1.FRM and creates a new FORM1.FRM.</li> Form the File menu, choose Save Project.</li> A dialog box appears, choose the OK button to save FORM1.FRM and choose the OK button to overwrite the old FORM1.FRM. This does actually write over the old FORM1.FRM out on disk.</li> A dialog box appears, choose the Cancel button to not save the project.</li> Notice that once back in VBDOS.EXE the original code added to FORM1.FRM is still there. You can even run the application, but be aware that other problems may occur.</li></ol>

This problem does not occur if while in the Form Designer you either choose the Save Form option or if you select Save Project, you make sure you actually do save the new project.

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB94261

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.