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
SpreadsheetAddData (Function)
In French: TableurAjouteDonnée
Adds a data into a Spreadsheet control found in a window.
Example
//  Initialize the 1st column with numbers from 1 to 10
FOR I = 1 to 10
SpreadsheetAddData(PSHEET_Spreadsheet, 1, I, "Row " + I)
END
//  Initialize the 1st row with numbers from 1 to 10
FOR I = 1 to 10
SpreadsheetAddData(PSHEET_Spreadsheet, i, 1, "Column " + i)
END
Syntax
SpreadsheetAddData(<Spreadsheet Control> , <Column> , <Row> , <Data>)
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Column>: Integer
Column number of the value to add.
<Row>: Integer
Row number of the value to add.
<Data>: Type of data
Value to add.
Remarks
  • If the cell (Column, Row) does not exist, this cell is created.
  • If the cell (Column, Row) already exists, the content of the cell is replaced by <Data>.
  • This function can only be used on a Spreadsheet control found in a window.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment