Search/Change "Match Not Found" If Previous Search/Label (46183)






This article was previously published under Q46183

SYMPTOMS

In the QuickBasic Version 4.50 environment, if you attempt to perform a Search/Change after previously performing a Search/Label, then a "Match Not Found" message or similar message may display. If the Search/Change is performed first, it functions correctly.

STATUS

Microsoft has confirmed this to be a bug in the QB.EXE editor in Microsoft QuickBasic Version 4.50. This problem was corrected in the QuickBasic Extended (QBX.EXE) environment of Microsoft Basic Professional Development System (PDS) Version 7.00 for MS-DOS and MS OS/2 (fixlist7.00).

MORE INFORMATION

When using the Label command on the Search menu, the Change command doesn't function correctly until another option is chosen from that menu. The Change command appears to work in all situations except after the Label command has been invoked.

This problem is associated only with the QuickBasic Version 4.50 environment and does not occur in earlier versions.

To reproduce the problem, do the following:

  1. Enter the following lines of code:
          LPRINT "Hello"
          LPRINT "GoodBye"
          label1:
          LPRINT "The end"
    						
  2. Choose Label from the Search menu and find the label "label1".
  3. Choose Change from the Search menu and find LPRINT and change it to PRINT. The message "No Match Found" is displayed.

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB46183