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

ID: Q94261


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


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:

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form.


  3. A dialog box appears, choose the OK button to use FORM1.FRM.


  4. From the File menu in the From Designer (FD.EXE), choose Exit.


  5. A dialog box appears, select Yes to save changes.


  6. In VBDOS.EXE, add the following code to the Load event procedure of FORM1.FRM:
    
          Sub Form_Load
             Beep
          End Sub 


  7. Press the F5 key to run the program.


  8. End the program by pressing ALT+MINUS or by choosing Close from the File menu.


  9. Select FORM1.FRM in the project box and choose Form to view FORM1.FRM.


  10. From the File menu in FD.EXE, choose New Project. This discards FORM1.FRM and creates a new FORM1.FRM.


  11. Form the File menu, choose Save Project.


  12. 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.


  13. A dialog box appears, choose the Cancel button to not save the project.


  14. 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.


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 :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.