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
<Spreadsheet>.GetMerge (Function)
In french: <Tableur>.RécupèreFusion
Allows you to find out whether a cell found in a Spreadsheet control is merged with other cells and to get the name of merged cells.
Remark: This function can only be used on a Spreadsheet control found in a window.
Example
sMerge is string = PSHEET_Spreadsheet.GetMerge("B1")
IF sMerge = "" THEN
Info("No merge")
ELSE
sMin is string = ExtractString(sMerge, 1, ":")
sMax is string = ExtractString(sMerge, 2, ":")
Info("Merge between " + sMin + " and " +  sMax)
END
Syntax

Retrieving the characteristics of a merged cell identified by its name Hide the details

<Result> = <Spreadsheet control>.GetMerge(<Cell>)
<Result>: Character string
  • Empty string ("") if the cell is not merged,
  • Range of merged cells in the following format:
    "<Name top left cell>:<Name bottom right cell>"
    For example: "A2:C5"
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
<Cell>: Character string
Name of cell to use. For example: "A4".

Retrieving the characteristics of a merged cell identified by its column and by its row Hide the details

<Result> = <Spreadsheet control>.GetMerge(<Column> , <Row>)
<Result>: Character string
  • Empty string ("") if the cell is not merged,
  • Range of merged cells in the following format:
    "<Name top left cell>:<Name bottom right cell>"
    For example: "A2:C5"
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
<Column>: Integer
Number of column for the cell to use.
<Row>: Integer
Row number of the cell to be used.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help