AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Finds all the instances of a character string and replaces them with another string in a Word Processing control.
Example
// Remplacement de tous les "%NomClient%" par le nom du client
TT_MonDocument.Remplace("%NomClient%", Client.Nom)
// Replacement du mot "Présentation" par "PRESENTATION"
TT_SansNom1.Remplace("Présentation", "PRESENTATION", WholeWord)
Syntax
<Word Processing control>.Replace(<Text to replace> , <Replacement text> [, <Options>])
<Word Processing control>: Control name
Name of the Word Processing control to use.
<Text to replace>: Character string
Text to find and to replace in the document. If this parameter corresponds to an empty string (""), the document will not be modified.
<Replacement text>: Character string
Character string that will replace <Text to replace>. If this parameter corresponds to an empty string (""), all the occurrences of <Text to replace> will be deleted
<Options>: Optional constant (or combination of constants)
Search options for the text to replace:
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.
Warning: The replacement does not take into account the writing direction..
Business / UI classification: UI Code
Component: wd300mdl.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

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