If you specify a command object to select, it selects that entire command in the Edit window. Otherwise, it selects the entire command surrounding the cursor location in the Edit window.
You can use this method to perform automation tasks on a selected command. Once you have it selected, you can copy and paste it somewhere else in the Edit window using the CopySelectedToClipBoard and PasteFromClipboard methods.
Visual Basic |
---|
Public Sub SelectCommand() |
For an example of SelectCommand, see CopySelectedToClipboard.