PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the text or image found in the system clipboard.
Remarks:
Example
Texte is string
IF ClipboardFormat(cfText) = True THEN
Texte = Clipboard()  // Contenu du presse-papiers dans Texte
END
Reports and Queries
IF ClipboardFormat(cfBitmap) = True THEN
Clipboard(IMG_Image1)  // Contenu du presse-papiers dans le champ IMG_Image1
END
Syntax

Retrieving a text Hide the details

<Result> = Clipboard()
<Result>: Character string
Text found in the clipboard.
Reports and Queries

Retrieving an image in an Image control Hide the details

<Result> = Clipboard(<Image control>)
<Result>: Boolean
  • True if the image found in the clipboard was retrieved,
  • False otherwise.
<Image control>: Control name
Name of Image control (found in the current window) into which the image found in the clipboard will be copied.
Versions 19 and later
Reports and Queries

Retrieving an image in an Image variable Hide the details

<Result> = Clipboard(<Image>)
<Result>: Boolean
  • True if the image found in the clipboard was retrieved,
  • False otherwise.
<Image>: Image variable
Name of the Image variable to which the clipboard image must be copied.
New in version 19
Reports and Queries

Retrieving an image in an Image variable Hide the details

<Result> = Clipboard(<Image>)
<Result>: Boolean
  • True if the image found in the clipboard was retrieved,
  • False otherwise.
<Image>: Image variable
Name of the Image variable to which the clipboard image must be copied.
Reports and Queries

Retrieving an image in an Image variable Hide the details

<Result> = Clipboard(<Image>)
<Result>: Boolean
  • True if the image found in the clipboard was retrieved,
  • False otherwise.
<Image>: Image variable
Name of the Image variable to which the clipboard image must be copied.
Remarks
  • Clipboard reads the text or image information found in the clipboard of current system. Clipboard cannot be used to read any type of information other than text or image (e.g., binary, etc.) in the clipboard.. To read a text in RTF, use ClipboardRTF.
  • Clipboard can be used to manage the cut/copy/paste feature performed on text or image information.
  • If the Image control must be assigned several times with the clipboard content, dEndDrawing must be used between the different assignments.
  • ToClipboard is used to write into the clipboard.
Related Examples:
The TableTo functions Unit examples (WINDEV): The TableTo functions
[ + ] Exporting table data with the WLanguage functions.
The following topics are presented in this example:
1/ interfacing with Word and Excel
2/ sending data to the clipboard
3/ generating a text file
This example explains how to export the content of a table to a Word document, an Excel workbook, the clipboard or a text file via the following WLanguage functions: TableToWord, TableToExcel, ToClipboard, TableToText.
Component: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment