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:
- 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
- Press the F5 key to run the program.
- End the program by pressing ALT+MINUS or by choosing Close from the File
menu.
- Select FORM1.FRM in the project box and choose Form to view FORM1.FRM.
- From the File menu in FD.EXE, choose New Project. This discards
FORM1.FRM and creates a new FORM1.FRM.
- Form the File menu, choose Save Project.
- 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.
- A dialog box appears, choose the Cancel button to not save the project.
- 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 :
|