Clip Method
Performs Text Control clipboard actions.
Syntax
TXTextControl.Clip Action
Parameters
| Parameter | Description |
|---|---|
| Action | Specifies the clipboard action. It can be one of the following values: |
Action
| Value | Description |
|---|---|
| 1 | Cuts out the selected text and copies it to the clipboard. |
| 2 | Copies the selected text to the clipboard. |
| 3 | Pastes text from the clipboard. |
| 4 | Clears the selection. |
Return Value
This method has no return value.
Data Types
| Name | Data type |
|---|---|
| Action | Integer |
Examples
This Basic example copies the selected text from a Text Control named "TXTextControl1" to the clipboard when the user selects the "Edit/Copy" menu item:
Sub mnuEdit_Copy_Click ()
TXTextControl1.Clip 2
End Sub