PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WINDEV Mobile 27 feature!
  • Use conditions
  • Limit
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
Copies the content of a Table or TreeView Table control to the clipboard. The control content is copied in text format: it is converted into a string and this string is copied to the clipboard.
Example
TABLE_TABLE1.ToClipboard(taNoTitle, ";")
Syntax
<Result> = <Table control>.ToClipboard([<Options> [, <Separator> [, <Start row> [, <End row>]]]])
<Result>: Boolean
  • True if the control content was copied to the clipboard,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Options>: Optional constant
Sets the information to be taken into account in the string copied to the clipboard.
taColumnDisplayedOrderExports the columns according to the order of columns currently displayed in the control (and not according to the order of columns defined in the editor).
taColumnsTitlesThe title of the columns is inserted.
taNoTitle
(default value)
Only the data is copied.
taNoTotalDoes not export:
  • the rows containing totals, mean and automatic count (these rows are exported by default).
  • WINDEV the rows containing custom calculations (these rows are exported by default).
taSelectedLinesExports the selected rows only (all the rows are exported by default).
taWithInvisibleColumnsAlso exports the invisible control columns.
WINDEV The columns defined as non printable and non exportable are exported. These columns are defined:
  • programmatically: VisibleInExportAndPrint property set to False.
  • in the "General" tab of the column description window: "Export and print" set to "Never".
<Separator>: Optional character string
Separator used between the columns. The default separator is the tabulation (TAB).
<Start row>: Optional integer
Number of the row where the export will start. If this parameter is not specified, the start row is the first row of the control.
<End row>: Optional integer
Number of the row where the export will end. If this parameter is not specified, the end row is the last row of the control.
Remarks

Use conditions

<Table>.ToClipboard can be used on:
  • a Table or TreeView Table control based on a data file.
  • a Table or TreeView Table control populated programmatically.
  • a single-selection or multi-selection control.

Limit

The merged columns are ignored.
Component: wd270std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment