Microsoft KB Archive/65936

= BUG: Macintosh QuickBasic Listing Window Corrupted During Edit =

Article ID: 65936

Article Last Modified on 11/21/2006



This article was previously published under Q65936



SYMPTOMS
Modifying the sample code below can corrupt the code displayed in the Listing window. This problem occurs after you first run the program and then try to make changes. This problem occurs only in this specific program; thus, it is very rare.

If the Listing window becomes corrupted, exit QuickBasic without saving and then re-enter QuickBasic. You can now safely reload the program. The program will be safe on disk as long as you don't Save after the Listing window becomes corrupted.

Microsoft has confirmed this problem in Microsoft QuickBasic versions 1.00 and 1.00a for the Macintosh. We are currently researching this problem and will post new information here as it becomes available.



MORE INFORMATION
To demonstrate this problem, do the following:

 Run the program. Press ENTER and the program will dimension the array. Stop the program by pressing COMMAND+PERIOD (or select Stop from the File menu). Modify the following line:

m=17543:n=2

 This line will now become garbage.

You can also attempt to modify other parts of the code and the same type of problem will occur.

The exact line spacing shown below is significant in this problem. Changing the line spacing or modifying the code in other ways may cause the problem to go away. For example, adding REM to the blank lines and then following the steps described above will not demonstrate the problem.

Note: The first three lines at the top of the program must all be blank and subsequent blank lines, such as the seven blank lines in the middle, must be entered as shown in order to duplicate the problem.

Sample Code
DEFDBL a-z

GOSUB menusub WHILE INKEY$=&quot;&quot;:WEND PRINT &quot;dimming&quot; m=17543:m=2 DIM a(m) PRINT &quot;hi&quot; GOSUB menusub WHILE -1:WEND

menusub: a$=a$+&quot;4.1&quot; MENU 1,0,1,&quot;menu1&quot; MENU 1,1,1,&quot;1.1&quot; MENU 1,2,1,&quot;1.2&quot; MENU 2,0,1,&quot;menu2&quot; MENU 2,1,1,&quot;2.1&quot; MENU 2,2,1,&quot;2.2&quot; MENU 3,0,1,&quot;menu3&quot; MENU 3,1,1,&quot;3.1&quot; MENU 3,2,1,&quot;3.2&quot; MENU 4,0,1,&quot;menu4&quot; MENU 4,1,1,&quot;4.1&quot; MENU 4,2,1,&quot;4.2&quot; MENU 5,0,1,&quot;menu5&quot; MENU 5,1,1,&quot;5.1&quot; MENU 5,2,1,&quot;5.2&quot; RETURN

Additional query words: MQuickB

Keywords: kbbug KB65936

-

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

© Microsoft Corporation. All rights reserved.