ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / RTF functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
// Insère au début de SAI_SAISIE1 le contenu du champ SAI_SAISIE2
RTFInsert(SAI_SAISIE1, SAI_SAISIE2, 1)

// Insère la date du jour à la position du curseur
RTFInsert(SAI_SAISIE1, DateSys(), SAI_SAISIE1..Cursor)
Syntax

Inserting a character string into an RTF control Hide the details

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 Hide the details

<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.
Remarks
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.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help