BUG: TABs Paste Incorrectly as | to VB.EXE's Immediate Window (73700)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0
  • Microsoft Visual Basic Standard Edition for Windows 1.0

This article was previously published under Q73700

SYMPTOMS

TAB characters may be (from the Windows Clipboard) incorrectly PASTEd into the Immediate Window in Visual Basic. In Visual Basic, version 1.0, TAB characters may be incorrectly PASTEd in as pipe [|] symbols. In Visual Basic, version 2.0, TAB characters may be incorrectly PASTEd in as '\177', which looks like a small black box.

STATUS

Microsoft has confirmed this to be a bug in Microsoft Visual Basic programming system versions 1.0 and 2.0 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. From Windows, version 3.0, run NOTEPAD.EXE and enter the following text:

    a <TAB> a

    This will be displayed in the following format:
       a     a
    						
  2. Select the text with the mouse and choose Copy from Notepad's Edit menu to copy the text to the Windows Clipboard.
  3. Start Visual Basic and press F5 to run the blank program (or from the Run menu, choose Start).
  4. Break the program by pressing CTRL+BREAK, then click the mouse on the Immediate Window.
  5. Press SHIFT+INSERT to enter the selected text into the Immediate Window. Observe that the Immediate Window incorrectly displays the following text:
       a|a
    						
    instead of displaying the following:
       a     a
    						
    NOTE: A pipe symbol is displayed in version 1.0, however in version 2.0, '\177' is displayed, which looks like a small black box.
  6. If you end the program (by choosing the End command from the Run menu), you will be able to successfully PASTE (SHIFT+INSERT) the correct text into any code window:
          a     a
    						

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:kbbug KB73700