ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
Returns various information about the sort performed in a Spreadsheet control.
Example
// Montre la zone qui va être triée
sSel is string 
sSel = SpreadsheetGetSortInfo(TBLR_Tableur, psheetInfoSortSelection) 
IF sSel = "" THEN
RETURN // non triable
END
sMin is string = ExtractString(sSel, 1, ":")
sMax is string = ExtractString(sSel, 2, ":")

// Sélectionne la zone
SpreadsheetSelectPlus(TBLR_Tableur, sMin, sMax)
Syntax
<Result> = SpreadsheetGetSortInfo(<Spreadsheet control> , <Type of information>)
<Result>: Character string
Requested information.
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
<Type of information>: Integer constant
Desired information:
psheetInfoSortCriteriaShows the last sort criteria used to sort Spreadsheet control. <Result> has the following format:
"<Nom de la colonne1>[;< Option>]" + TAB +
"<Nom de la colonne2>" + TAB + ...
where:
  • <Name of column> is the name of sorted column,
  • <Option> corresponds to one of the sort constants defined for SpreadsheetSortSelection.
Example: "A<Tab>B;3"
psheetInfoSortSelectionGets the selection that will be sorted via the Automatic Application Features (AAFs) in the Spreadsheet control. Example: "A2:B4".
Remark: If the selection does not allow the sort, <Result> corresponds to an empty string ("").
psheetInfoSortWithTitleDetermines if the selection sorted by the Automatic Application Features (AAFs) in the Spreadsheet control contains a title. <Result> can correspond to:
  • 1 if the selection to sort includes a title,
  • 0 otherwise.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/24/2024

Send a report | Local help