AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de búsqueda
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
Versión mínima requerida
  • Versión 18
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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