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

Last reviewed: June 21, 1995
Article ID: Q73700
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0
- Microsoft Visual Basic programming system for Windows, version 1.0

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
    


Additional reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
3.00
KBCategory: kbenv kbbuglist
KBSubcategory: EnvtDes


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.