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 previous element corresponding to the sought 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_Previous.State = Grayed
Info("Text not found")
ELSE
BTN_Next.State = Active
END
 
// Click on BTN_Previous
ControlFindTextPrevious(MyWindow.Name)
Syntax
ControlFindTextPrevious(<Element>)
<Element>: Window name or control name
Name of element where the search will be performed. This element can correspond to:
  • a window name. The search is performed in the caption of controls, the text of buttons, the text of edit controls, the text of table rows, ... 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: 05/26/2022

Send a report | Local help