PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
LooperSort_55 (Function)
In French: ZoneRépétéeTri
LooperSort_55 is kept for backward compatibility.
In this version, use LooperSort.
See the documentation for LooperSort available in WEBDEV 1.5.
 
Purpose
Sorts a Looper control according to one or more attributes.
Syntax
  • Syntax 1: Sorting a looper on several attributes
<Result> = LooperSort_55(<List_Attributes>)
  • <Result> is a boolean that returns the result of the sort
  • <List of Attributes> is a character string containing the name of the attributes to sort (up to 10 attributes). <List_Attributes> has the following format:
    [<direction>]<Attribute1>+TAB+[<direction>]<Attribute2>+TAB+...
  • <direction> is the sort direction (optional), it can bet set to + (ascending sort) or - (descending sort)
  • <Attribute> is the name of the attribute to sort
  • Syntax 2: Sorting a looper
<Result> = LooperSort_55([<Direction>]<Looper> [,<Indicator>])
  • <Result> is a boolean that returns the result of the sort
  • <Looper> is the name of the Looper control to sort
  • <Indicator> is a boolean that is used to cancel (or not) the sort
Details
<Result> is set to True if the sort was successful, and to False otherwise (invalid parameters...).
Syntax 1: <Result> = LooperSort_55(<List_Attributes>)
The sort is performed on the attributes specified in <List_Attibutes>. The first attribute used for the sort is the first one specified, and so on
In <List of Attributes>, if the sign + is displayed in front of the name of an attribute, the sort will be performed in the ascending order for this attribute.
In <List of Attributes>, if the sign - is displayed in front of the name of an attribute, the sort will be performed in the descending order for this attribute.
The sort is performed in ascending order by default.
Syntax 2: <Result> = LooperSort_55([<Direction>]<Looper> [,<Indicator>])
The sort is performed on the first 10 attributes of the Looper control, if they exist. The first attribute used for sort is the attribute found on the left side of the Looper control.
If the sign + is displayed in front of the name of the Looper control, the sort will be performed in ascending order for the 10 attributes found in the Looper control.
If the sign - is displayed in front of the name of the Looper control, the sort will be performed in descending order for the 10 attributes found in the Looper control.
The sort is performed in ascending order by default
If <Indicator> is set to True (default value), the sort is performed.
If <Indicator> is set to False, the sort is canceled.
Therefore, <Indicator> set to False is used to cancel a sort that was previously requested.
Once the sort is canceled (<Indicator> is set to False), the order of the Looper control rows is not modified but the rows added by LooperAdd or LooperInsert will not be sorted.
Notes
When a Looper control is sorted (by LooperSort), the additions performed by LooperAdd or LooperInsert take the sort into account.
The sort is not canceled by TLooperDelete , LooperDeleteAll , LooperSeek , LooperCount.
Important: if an attribute is modified (by LooperModify) and if this attribute is sorted, the sort on this attribute is canceled.
Components
WEBDEV - Server code wd230dllexe.dll
Linux wd230dllexe.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment