PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the text or image found in the system clipboard.
Notes:
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App You only have the ability to retrieve the text found in the clipboard.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Text is string
IF ClipboardFormat(cfText) = True THEN
Text = Clipboard()  // Clipboard content in Text
END
WINDEVReports and QueriesJavaUser code (UMC)
IF ClipboardFormat(cfBitmap) = True THEN
Clipboard(IMG_Image1)  // Clipboard content in the IMG_Image1 control
END
WINDEV
MyImage is Image
IF ClipboardFormat(cfBitmap) = True THEN
Clipboard(MyImage)  // Clipboard content in the Image variable
END
Syntax

Retrieving a text Hide the details

<Result> = Clipboard()
<Result>: Character string
Text found in the clipboard.
WINDEVReports and QueriesJavaUser code (UMC)

Retrieving an image in an Image control Hide the details

<Result> = Clipboard(<Name of Image Control>)
<Result>: Boolean
  • True if the image found in the clipboard was retrieved,
  • False otherwise.
<Name of Image Control>: Character string (with or without quotes)
Name of Image control (found in the current window) into which the image found in the clipboard will be copied.
Versions 19 and later
WINDEVReports and QueriesUser code (UMC)

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 Image variable into which the image found in the clipboard will be copied.
New in version 19
WINDEVReports and QueriesUser code (UMC)

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 Image variable into which the image found in the clipboard will be copied.
WINDEVReports and QueriesUser code (UMC)

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 Image variable into which the image found in the clipboard will be copied.
Remarks
  • Clipboard reads the text or image information found in the clipboard of current system. The information other than text or image information (binary information, etc.) found in the clipboard cannot be read by Clipboard. To read a text in RTF format, 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.
  • AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App Only the Text information can be retrieved (Syntax 1).
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.
Components
WINDEVReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment