TX Text Control ActiveX

Clip Method

Method

Performs Text Control clipboard actions.

Syntax

TXTextControl.Clip Action

Parameters

ParameterDescription
ActionSpecifies the clipboard action. It can be one of the following values:

Action

ValueDescription
1Cuts out the selected text and copies it to the clipboard.
2Copies the selected text to the clipboard.
3Pastes text from the clipboard.
4Clears the selection.

Return Value

This method has no return value.

Data Types

NameData type
ActionInteger

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

See Also