AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de búsqueda
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Highlights, in a window or control, all the captions and texts corresponding to a given text.
Example
// A chaque modification de SAI_Recherche
ControlFindHighlight(FEN_Recherche, SAI_Recherche)
Syntax
<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
Name of the element where the search will be performed. This element can correspond to:
  • a window name. The search is then carried out in field labels, button text, edit control text, table line text, etc. All visible fields with no invisible parent are searched.
  • a control name. If this element corresponds to a Ribbon control, the search is performed in all ribbon controls.
<Searched text>: Character string
  • Text that must be found in the specified element.
  • "" (empty string) to cancel the search.
<Search options>: Optional Integer constant
Indicates the search options:
IgnoreCaseCase and accent insensitive search (ignores uppercase/lowercase differences)
WholeWordSearches for a whole word (enclosed in punctuation characters or spaces)
0Search while taking the case into account (uppercase/lowercase characters) on a text "contained in".

By default, no option is selected: the search is case sensitive and is performed on incomplete words..
<Highlight color>: Integer or constant (optional)
Color used to highlight the occurrences found. This color can correspond to:
Note: The default color is light yellow.
Remarks
  • 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: wd300obj.dll
Versión mínima requerida
  • Versión 18
Comentarios
Exemplo Controlfindhighlight
Controlfindhighlight(Win_Cursos,edt_texto)

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-969-windev-dicas-006.html

https://www.youtube.com/watch?v=gpPwlTMIQXg

De matos
04 12 2016

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local