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 list of selected cells in a Spreadsheet control found in a window.
Example
// Calculates the sum of all selected cells
// (Numeric cells)
Total is int
FOR EACH sCellName OF PSHEET_Spreadsheet.GetSelection()
Total += PSHEET_Spreadsheet[sCellName]
END
Syntax
<Result> = <Spreadsheet control>.GetSelection()
<Result>: Array of strings
  • Array of strings containing the name of the selected cells in the Spreadsheet control.
  • Empty string ("") if no cell is selected.
<Spreadsheet control>: Control name
Name of the Spreadsheet control 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