ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILEVersion: 151617181920212223242526
 Home | Sign in | English
 This content has been translated automatically. Click here to view the French version.
WINDEV
WEBDEV
WINDEV Mobile
Others
TableSort_55 (Function)
In french: TableTri
Warning
TableSort_55 is kept for backward compatibility.
In this version, use TableSort.
Below is the documentation of TableSort_55.
 PurposeSort a memory table on one or more columnsSyntaxSyntax 1: Sorting a table on several columns = TableSort_55() is a boolean that returns the result of the sort is a character string containing the name of the columns to sort (up to 10 columns). The format of is as follows:[]+TAB+[]+TAB+... is the sort direction (optional), it can bet set to + (ascending sort) or - (descending sort) is the name of column to sortSyntax 2: Sorting a table = TableSort_55([] [,]) is a boolean that returns the result of the sort is the name of the table to sort is a boolean that is used to cancel (or not) the sortDetails is set to True if the sort was successful, and to False otherwise (invalid parameters...).Syntax 1: = TableSort_55()The sort is performed in the columns specified in . The first column used for sort is the first specified column, the second...In , if + is found in front of the name of a column, the sort will be performed in ascending order for this column.In , if - is next to the name of a column, the sort will be performed in descending order for this column.The sort is performed in ascending order by default.Syntax 2: = TableSort_55([] [,])The sort is performed on the first 10 visible columns of the table, if they exist. The first column used for the sort is the visible column found on the left in the table.If + is found in front of the table name, the sort will be performed in ascending order for the 10 visible table columns.If - is found in front of the table name, the sort will be performed in descending order for the 10 visible table columns.The sort is performed in ascending order by defaultIf is set to True (default value), the sort is performed.If is set to False, the sort is canceled.Therefore, set to False is used to cancel a sort that was previously requested.Once the sort is canceled (with set to False), the order of the table rows is not modified but the rows added by TableAdd, TableInsert will not be sorted.NotesIf the table was defined as "sortable" in the editor, the table can be sorted on a column by clicking the title of the column.A cell of combo box column with no selected subscript is considered as being empty.TableSort_55 is used sort a table, regardless whether the table was defined as sortable or not in the editor.We do not recommend that you use TableSort_55 on the calculated columns. Indeed, these columns are calculated when each row is displayed. A sort performed by TableSort_55 on these columns will only be valid for the rows already displayed.For the Combo Box columns, the sort depends on the content of the combo box (and not on the subscript of the combo box).The combo boxes in the tables being graphic combo boxes, the content of the combo box that will be used as sort criterion must be described by gARetrieve.When the table is sorted (by TableSort_55 or by a mouse click), the additions performed in the table by TableAdd or TableInsert take the sort into account.The sort is not canceled by TableDelete, TableDeleteAll, TableDisplay, TableSeek, TableAdjust, TableCount, TablePosition, TableSelect and TableSelectPlus.Important: if a column is modified (input in the column or by TableModify) and if this column is sorted, the sort on the column is canceled.
Component: wd260obj.dll
Minimum version required
• Version 9
This page is also available for…
 Comments
 Click [Add] to post a comment
 Last update: 12/04/2020Send a report | Local help
 Registered trademarks. Copyright ©2009-2021 PC SOFT. All rights reservedThis website has been developed with WEBDEV and HFSQLWEBDEV, WINDEV Mobile and WINDEV programming