|
|
|
|
ControlFindTextPrevious (Function) In french: ChampRechercheTextePrécédent 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. // 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|