ID Number: Q77928
1.00
WINDOWS
buglist1.00
Summary:
The key combinations CTRL+LEFT ARROW and CTRL+RIGHT ARROW work
differently when editing code in a procedure than when typing in the
Immediate window.
In the Immediate window, CTRL+LEFT ARROW will move the cursor in front
of the preceding word even if that word is one of the following
symbols:
! @ # $ % ^ ^ & * ( ) { } : ; , " ' [ ] < >
In the code editor, these symbols are not treated as words, therefore
the cursor will skip over them when using the ARROW key combinations
to position the insertion point.
Microsoft has confirmed this to be a problem in the VB.EXE environment
in Visual Basic programming system version 1.0 for Windows. We are
researching this problem and will post new information here as it
becomes available.
More Information:
In a code window, using the LEFT ARROW key with the CTRL key held down
will move the cursor to the beginning of the preceding word or letter
on that line, disregarding any punctuation marks and other symbols
(that is, any character obtained by typing a number while holding down
the SHIFT key, all punctuation marks, brackets, braces, and single and
double quotation marks.
In the Immediate window, only the period is not treated as a word
and is skipped over when using the CTRL+LEFT ARROW or CTRL+RIGHT
ARROW key combination.
Steps to Reproduce Problem
--------------------------
1. Run Visual Basic.
2. From the File menu, select New Project (ALT, N, P). Form1 will be
created by default.
3. Press F7 or double-click on Form1 to bring up the code window.
4. Enter the following code in the Form_Click event procedure of
Form1:
Sub Form_Click()
print "Home."
End Sub
5. While the cursor is still at the end of the line, press CTRL+LEFT
ARROW to move the cursor to the beginning of the previous word.
The cursor should move directly in front of the H in Home.
6. From the Run menu, choose Start to run the program.
7. Press CTRL+BREAK to bring up the Immediate window.
8. Type the following in the Immediate window:
Print "Home."
9. With the cursor at the end of the line, press CTRL+LEFT ARROW key.
The insertion point should be directly in front of the last double
quotation mark.
Additional reference words: 1.00