ClipboardText

Returns or sets a text string to the Windows clipboard.

Syntax

Rhino.ClipboardText (strText)

Parameters

strText

Optional.  String.  A text string.

Returns

String

If strText is not specified, the current text string from the Windows clipboard if successful.

String

If strText is specified, the previous text string from the Windows clipboard if successful.

Null

If not successful or on error.

Example

Dim strText

strText = Rhino.ClipboardText("Hello Rhino!")

If Not IsNull(strText) Then

MsgBox strText, 0, "Clipboard Text"

End If