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 Editor HTML
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Searches for a string in an HTML Editor control. The search does not take into account the formatting of the string.
Ejemplo
// Count the number of "WINDEV"
// (including instances where WIN is in bold)
nbWord is int = 0
HTMLEditorSearch(HTMEDT_MyHTMLEditor, "WINDEV",  ...
		HTMLEditorSearch_Callback, WholeWord + IgnoreCase)

INTERNAL PROCEDURE HTMLEditorSearch_Callback(nPos is int)
	IF nPos = 0 THEN
		// End of iteration
		Info("Number of WINDEV: " + nbWord)
		RETURN 
	END
	// Found
	nbWord++
END
Sintaxis
HTMLEditorSearch(<HTML Editor control> , <Text to find> , <WLanguage procedure> [, <Options> [, <Maximum number>]])
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<Text to find>: Character string
Text to search for in the HTML Editor control.
<WLanguage procedure>: Procedure name
WLanguage procedure ("callback") executed for each element found. This procedure has the following format:
PROCEDURE <Procedure name>(nPosition is int)
where <nPosition> is an integer that corresponds to the position of the searched text with respect to the text without tags. This value can be used: At the end of the search, <nPos> is set to 0.
<Options>: Optional constant (or combination of constants)
Search options:
IgnoreCaseCase and accent insensitive search (ignores uppercase and lowercase differences).
WholeWordWhole word search (enclosed in punctuation characters or spaces).

By default, the search is case sensitive: the text searched for must have the same case as the text to be found. To perform a case-insensitive search, use the IgnoreCase constant.
<Maximum number>: Optional integer
Maximum number of elements to be found. Limits the search (for example, take into account only the first 5 elements found).
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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