%HI_Get_Clipboard_Cols function


Function
The function detects the number of rows of the text from the Clipboard. Columns are horizontal tab-separated.
Declaration
INT %HI_Get_Clipboard_Cols()

Parameters
None.
Example
ENTRY IMPORT_OnClick
 INT _rows
 INT _cols
 ; detection of the structure size placed in Clipboard
 _rows :=  %HI_Get_Clipboard_Rows()
 _cols :=  %HI_Get_Clipboard_Cols()
 
 IF  _rows=0 | _cols=0 THEN
 ; Clipboard is empty
 ELSE
 ; reading the Clipboard content
 %HI_From_Clipboard(_recFrom^Real, "")
 ENDIF
 END IMPORT_OnClick

Napíšte komentár