Microsoft KB Archive/83348

= Microsoft Knowledge Base =

Multiline Selection in Test Driver Includes Last CR+LF
Last reviewed: October 19, 1994

Article ID: Q83348

The information in this article applies to:

- Microsoft Test for Windows, version 1.0

SUMMARY
When you select (or highlight) text within a script file of one or more lines in Test Driver, the carriage return plus linefeed character combination (CR+LF) at the end of the last line is also selected.

MORE INFORMATION
Note that in Test Driver, when you select text on more than one line, you can only select whole lines. For example, if you place the cursor in the middle of the first line and then select down to the middle of the second line, you will highlight both of the lines completely. You can only select portions of text within a single line. So if you do the following,


 * 1) Type in several lines of code.
 * 2) Highlight several lines, leaving the caret anywhere in the last highlighted line.
 * 3) Type &quot;A&quot; to replace the highlighted lines.

you may expect Test Driver to replace the text with what you type. However, the selected text includes the last carriage return plus linefeed, so the result is that you are placed in column 1 of the line after the end of the selection, and the character &quot;A&quot; appears there.

For example, if you enter:

1 ' highlight lines 1 -3 2 3 ' Leave the caret in this line. Type an &quot;a&quot; 4

then select lines 1 through 3, and press &quot;a&quot;, you get

a4