OpenClip( )

Microsoft Visual FoxPro Foxtools

OpenClip( )

Opens the Clipboard for access by subsequent Clipboard-related functions.

Syntax

OpenClip(nHandle)

nHandle

Specifies the handle of the window to be associated with the Clipboard. Zero is acceptable. To get the handle of the Visual FoxPro main window, call MainHwnd( ).

Return Type

Logical

Remarks

The return value reports success (.T.) or failure (.F.) of the command. Almost all Clip functions rely on opening the Clipboard before using the function. You can use _CLIPTEXT to access the contents of the Windows Clipboard.

Note   This function maps to the Windows SDK function that is similarly named. For more information, see the Windows SDK documentation.