ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Spreadsheet functions
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
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 the Spreadsheet control to be used.
<Cell>: Character string
Name of cell for which the formula will be retrieved. This parameter has the following syntax: <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 the Spreadsheet control to be used.
<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,
- ...
Component: wd290obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help