' Rapid-Q by William Yu (c)1999-2000 . ' ================================================================================ ' Upload_il_tuo_script_su_Rapidq.it ' Clipboard ****** CLIPBOARD Component ****** This object is global, and need not be created. ClipBoard Properties Field Type R/W Default =================== =================== =================== =================== Format ARRAY of WORD RW Format is a list of all the format the Clipboard contains. There are too may formats to fit on this page, not to mention all the custom formats you may have registered. Check your WinAPI help file for a list. FormatCount INTEGER R FormatCount contains the number of formats in the Format array. Text STRING RW Text specifies the current contents of the Clipboard as a string. ClipBoard Methods Method Type Description Params =================== =================== =================== =================== Clear SUB Clear clipboard 0 Deletes contents of the Clipboard. Close SUB Free clipboard for 0 other processes Closes the Clipboard if it is open. The Clipboard can be opened multiple times, so the Clipboard will remain opened until it has been closed the same number of times it has been opened. GetAsHandle FUNCTION (Format AS Returns handle of 1 WORD) AS LONG specified format GetAsHandle returns the data from the Clipboard in a raw Windows handle for the specified format. GetAsText FUNCTION (length%) Returns text of 1 AS STRING length% GetAsText returns the text contents of the Clipboard. See also Text property. HasFormat FUNCTION (Format AS Returns true or 1 WORD) AS SHORT false if the format exists or not HasFormat indicates if the Clipboard object contains a particular format. Returns 0 if format is absent, non-zero otherwise if format is present. Open SUB Begin critcal 0 section Opens the Clipboard and prevents other applications from changing its contents until the Clipboard is closed. SetAsHandle SUB (Format AS Set handle and 2 WORD, Handle AS format LONG) SetAsHandle places the data in the given format as a Windows handle. SetAsText SUB (Text$) Set text of 1 clipboard SetAsText sets the text contents of the Clipboard. See also Text property. ClipBoard Examples ClipBoard.Open PRINT ClipBoard.Text ClipBoard.Close ' =============================================================================== ' 2003 Holyguard.net - 2007_Abruzzoweb