Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2022.2 Object Library
PCDLRN ActiveX DLL > EditWindow Object : CutSelectedToClipboard Method
CutSelectedToClipboard Method
Description
This cuts any text or commands selected in the Edit window and stores them in the Clipboard.
Syntax
Visual Basic
Public Sub CutSelectedToClipboard() 
Example
 
This example selects the the last command in the Edit window and cut it to the Clipboard.
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
See Also