This cuts any text or commands selected in the Edit window and stores them in the Clipboard.
Visual Basic |
---|
Public Sub CutSelectedToClipboard() |
This example selects the the last command in the Edit window and cut it to the Clipboard.
Example (Visual Basic) | Copy Code |
---|---|
Sub Main Dim App As Object Set App = CreateObject ("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram Dim Ew As Object Set Ew = Part.EditWindow Dim Cmds As Object Set Cmds = Part.Commands Cmds.SetCurrentCommand Cmds.LastCommand Ew.CommandMode Ew.SelectCommand Ew.CutSelectedToClipboard End Sub |