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
LooperSeekAnywhere (Function)
In French: ZoneRépétéeCherchePartout
Seeks a value in all attributes of a Looper control.
Example
// Code [Seek] button
nPos is int
nPos = LooperSeekAnywhere(LOOP_Order, EDT_Search, searchContains)
// If found
IF nPos > 0 THEN
// Selects the row
LOOP_Order = nPos
END
Syntax
<Result> = LooperSeekAnywhere(<Looper Control> , <Sought Value> [, <Type of Search> [, <Start>]])
<Result>: Integer
  • Subscript of element found,
  • -1 if the search failed.
<Looper Control>: Control name
Name of Looper control where the search will be performed. The search is performed in all the attributes.
<Sought Value>: Character string (with quotes)
Value sought in all attributes.
<Type of Search>: Optional Integer constant
Type of search to perform:
searchStartsWithGeneric search whose type is "Starts with": <Result> corresponds to the subscript of the row where elements have a value starting with <Sought Value>.
searchContains
(Default value)
Generic search whose type is "Contains": <Result> corresponds to the subscript of the row where elements have a value containing <Sought Value>.
searchExactMatchExact-match search whose type is "Equals to": <Result> corresponds to the subscript of the rows where elements have a value strictly equal to <Sought Value>.
<Start>: Optional integer
Start subscript for the search (1 by default).
Remarks

Use conditions

  • LooperSeekAnywhere can be used on:
    • a browsing Looper control. However, this function is not available for the browsing Table controls with direct access.
    • a memory Looper control.
  • The value is sought among the attributes that are linked to a visible text value (for example, ..Value on an edit control or ..Caption on a Static control).
  • The search is not performed in the hidden attributes.

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 21
This page is also available for…
Comments
Click [Add] to post a comment