ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Search 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
Finds and selects the next instance of the search text in a window or control.
The search must have been initialized by ControlFindTextFirst on this element. Otherwise, a WLanguage error occurs.
Example
// Whenever EDT_SRCH is modified
// Finds and highlights all occurrences
// Highlights the 1st occurrence in blue and displays it if necessary
IF ControlFindTextFirst(MyWindow.Name, EDT_SRCH, 0, iLightBlue) = 0 THEN
BTN_Next.State = Grayed
Info("Text not found")
ELSE
BTN_Next.State = Active
END

// Click on BTN_Next
ControlFindTextNext(MyWindow.Name)
Syntax
ControlFindTextNext(<Element>)
<Element>: Window name or control name
Name of the element where the search will be performed. This element can correspond to:
  • a window name. The text is searched in the controls, buttons, table rows, etc. The search is performed in all the visible controls that have no invisible parent.
  • a control name. If this element corresponds to a Ribbon control, the search is performed in all ribbon controls.
Component: wd290obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/09/2024

Send a report | Local help