Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Highlights, in a window or control, all the captions and texts corresponding to a given text.
// Whenever EDT_Search is modified
ControlFindHighlight(WIN_Search, EDT_Search)
<Result> = ControlFindHighlight(<Element> , <Searched text> [, <Search options> [, <Highlight color>]])
<Result>: Integer
  • Number of occurrences found in the control or window.
  • 0 if no element contains the searched text.
<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.
<Searched text>: Character string (with quotes)
  • Text that must be found in the specified element.
  • "" (empty string) to cancel the search.
<Search options>: Optional Integer constant
Indicates the search options:
WholeWordSearch for a whole word (enclosed in punctuation characters or in space characters)
IgnoreCaseSearch while ignoring the case (uppercase/lowercase characters) or the accented characters
0Search while taking the case into account (uppercase/lowercase characters) on a text "contained in".

No option is selected by default: the search is sensitive to the case and it is performed on incomplete words.
<Highlight color>: Integer or constant (optional)
Color used to highlight the occurrences found. This color can correspond to:
Remark: The color used by default is light yellow.
  • A single search can be performed at a given time in a control or in a window.
  • The search is not performed in the following controls:
    • HTML control and edit control in HTML format.
    • ActiveX control.
    • Zone not displayed in the Looper controls, List Box controls, Table controls.
    • List, table or popup displayed by the combo boxes.
Component : wd260obj.dll
Minimum version required
  • Version 18
This page is also available for…
Exemplo Controlfindhighlight

// Blog com Video e Exemplo



De matos
04 Dec. 2016