WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Inserts an empty column into a Spreadsheet control found in a window.
// Inserts several columns
FOR I = 2 TO 5
SpreadsheetInsertColumn(PSHEET_Spreadsheet, I)
SpreadsheetInsertColumn(<Spreadsheet control> [, <Column>])
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
<Column>: Optional integer
Number of the column before which the new column will be inserted. For example, if this parameter is set to 2, the new column will be inserted at position 2. The existing columns will be moved to the right and the formulas will be updated.
If this parameter is not specified and if a column is selected in the control, the insertion will be performed before the selected column. Otherwise (no selected column), the function has no effect.
  • The insert operation is added into the list of operations to cancel: the user can undo this operation via the context menu or by pressing Ctrl + Z.
  • This function can only be used on a Spreadsheet control found in a window.
Related Examples:
The Spreadsheet control Unit examples (WINDEV): The Spreadsheet control
[ + ] Using the Spreadsheet control.
This example explains how to:
- load an xlsx file in a spreadsheet control,
- save the spreadsheet in a file,
- fill the control with data coming from the database,
- insert rows, columns,
- access the cells and handle them (modify their value, their style, ...),
- enter formulas,
- ...
Component: wd280obj.dll
Minimum version required
  • Version 20
This page is also available for…
Click [Add] to post a comment