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 RTF
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
Inserts a character string in RTF into the content of an RTF control (found in a window or in a WINDEV report) or into the content of a character string in RTF.
Reminder: To add an RTF-formatted string to the end of another RTF string, use the RTFAdd function.
Ejemplo
// Inserts the content of EDT_EDIT2 at the beginning of EDT_EDIT1
RTFInsert(EDT_EDIT1, EDT_EDIT2, 1)

// Inserts today's date at cursor location
RTFInsert(EDT_EDIT1, DateSys(), EDT_EDIT1..Cursor)
Sintaxis

Inserting a character string into an RTF control Ocultar los detalles

RTFInsert(<RTF control> , <Character String to Insert> , <Insertion position>)
<RTF control>: Character string
Name of RTF control (edit control, control of a WINDEV report).
<Character String to Insert>: Character string
Character string in RTF that must be inserted into the content of RTF control.
<Insertion position>: Integer
Position where the character string in RTF is inserted. The index of the first character in the control is set to 1.

Inserting a character string into an RTF string Ocultar los detalles

<Result> = RTFInsert(<RTF string> , <Character String to Insert> , <Insertion position>)
<Result>: Character string
New character string into which the addition was performed. The initial string is not modified.
<RTF string>: Character string
Name of character string in RTF.
<Character String to Insert>: Character string
Character string in RTF that must be inserted into the content of RTF string.
<Insertion position>: Integer
Position where the character string in RTF is inserted. The index of first character found in the string is set to 1.
Observaciones
This function controls the RTF management of WIndows. Depending on the Windows version used, a paragraph end may be added at the end of the line.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

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