PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Sensitivity to the case
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
LooperSeek (Function)
In French: ZoneRépétéeCherche
Seeks a value in an attribute of a Looper control.
Versions 21 and later
Note: To perform a search in all the attributes of a Looper control, use LooperSeekAnywhere.
New in version 21
Note: To perform a search in all the attributes of a Looper control, use LooperSeekAnywhere.
Note: To perform a search in all the attributes of a Looper control, use LooperSeekAnywhere.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Count the name starting with "SMI"
// The first one
Subscript is int = LooperSeek(ATT_NAME, "SMI", False)
Cnt is int = 0
WHILE Subscript <> -1
Cnt++
// Next one
Subscript = LooperSeek(ATT_NAME, "SMI", False, Subscript + 1)
END
Info("There are " + Cnt + " names starting with 'SMI'")
// Finds the position of customer #1234
Subscript is int = LooperSeek(ATT_IDCUSTOMER, "1234")
// If this customer was found
IF Subscript <> -1 THEN
// Positions the looper on the customer found
LOOP_LOOPER1 = Subscript
// Retrieves the name of the customer (ATT_NAME is an "attribute" of LOOP_LOOPER1)
// and assigns it to a Static control
STC_CAPTION1 = " Information about " + ATT_NAME
END
Syntax
<Result> = LooperSeek(<Attribute> , <Sought Value> [, <Type of Search> [, <Start>]])
<Result>: Integer
  • Subscript of element found,
  • -1 if the search failed.
<Attribute>: Character string
Attribute of the Looper control on which the search must be performed.
If this parameter is equal to an empty string (""), the search is performed on the attribute to which the current process belongs.
<Sought Value>: Character string (with quotes)
Value sought in the specified attribute.
<Type of Search>: Optional Integer constant
Type of search to perform:
  • True (default value): Exact-match search ("Equals to"): Only the subscript of the elements whose value is strictly equal to <Sought Value> is returned.
  • False: Generic search ("Starts with"): The subscript of the elements whose value starts with <Sought Value> is returned.
Type of search to perform:
Versions 21 and later
searchStartsWith
New in version 21
searchStartsWith
searchStartsWith (or False for compatibility)
Generic search whose type is "Starts with"
The subscript of the elements whose value starts with <Sought Value> is returned.
Versions 21 and later
searchContains
New in version 21
searchContains
searchContains
Generic search whose type is "Contains"
The subscript of the elements containing <Sought Value> is returned.
WEBDEV - Browser codePHP This constant is not available.
Versions 21 and later
searchExactMatch
New in version 21
searchExactMatch
searchExactMatch (or True for compatibility)
(Default value)
Exact-match search ("Equals to")
The subscript of the elements whose value is strictly equal to <Sought Value> is returned.
<Start>: Optional integer
Start subscript for the search (1 by default).
Remarks

Use conditions

LooperSeek can be used on a browsing or memory Looper control.
WEBDEV - Browser code This function is not available for the linear Looper controls. This function is available for the Browser Looper controls only.
WEBDEV - Server codePHP This function is available for the Ajax Looper controls, the Classic Looper controls and the linear Looper controls.

Sensitivity to the case

The search is not case sensitive, even if the search is an exact-match search.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment