PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Finds and selects the next element corresponding to the sought text in a window or in a 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 the 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>: Character string (with or without quotes)
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 : wd250obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment