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
SpreadsheetGetFormula (Function)
In French: TableurRécupèreFormule
Retrieves the calculation formula of a cell found in a Spreadsheet control of a window.
Example
EDT_Formula = SpreadsheetGetFormula(PSHEET_Spreadsheet1, "B3", nationFrench)
Syntax

Retrieving the formula of a cell identified by its name Hide the details

<Result> = SpreadsheetGetFormula(<Spreadsheet Control> , <Cell> [, <Language>])
<Result>: Character string
  • Formula in the specified language. This formula does not contain the '=' character.
  • Empty string if the cell contains no formula.
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Cell>: Character string (with quotes)
Name of cell for which the formula will be retrieved. This parameter has the following format: <Column letter><Row number>. For example: "A32".
<Language>: Optional Integer constant
Constant used to specify the language in which the formula will be retrieved.
  • If this parameter corresponds to the nationFrench constant, the formula is retrieved in French.
  • If this parameter is not specified or if it differs from the nationFrench constant, the formula si retrieved in English (native Excel format).

Retrieving the formula of a cell identified by its coordinates Hide the details

<Result> = SpreadsheetGetFormula(<Spreadsheet Control> , <Column> , <Row> [, <Language>])
<Result>: Character string
  • Formula in the specified language. This formula does not contain the '=' character.
  • Empty string if the cell contains no formula.
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Column>: Integer
Number of the column corresponding to the cell for which the formula must be retrieved.
<Row>: Integer
Number of the row corresponding to the cell for which the formula must be retrieved.
<Language>: Optional Integer constant
Constant used to specify the language in which the formula will be retrieved.
  • If this parameter corresponds to the nationFrench constant, the formula is retrieved in French.
  • If this parameter is not specified or if it differs from the nationFrench constant, the formula si retrieved in English (native Excel format).
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,
- ...
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment