|
|
|
|
|
CodeEditorReplace (Function) In french: EditeurCodeRemplace Finds and replaces a string in the Code Editor control. New in version 2025
CodeEditorReplace(CODEEDT_NoName1, "Info", "Trace", WholeWord)
CodeEditorDeleteAll(CODEEDT_Example)
sCode is string = [
sFile is string
info(sFile)
]
CodeEditorInsert(CODEEDT_Example, 1, sCode)
arrFind is array of int
CodeEditorSearch(CODEEDT_Example, "info")
IF arrFind.Count > 0 THEN
Info("'info' was found and will be replaced with 'error'.")
END
CodeEditorReplace(CODEEDT_Example, "info", "error")
Syntax
CodeEditorReplace(<Code Editor control> , <Text to find> , <New text> [, <Options>])
<Code Editor control>: Control name Name of the Code Editor control to be used. <Text to find>: Character string Text to find. <New text>: Character string Replacement text. <Options>: Optional Integer constant Search options for the word to be replaced:
| | IgnoreCase | Case and accent insensitive search (ignores uppercase and lowercase differences). | WholeWord | Whole word search (enclosed in punctuation characters or spaces). |
By default, search is case-sensitive. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|