ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / RTF functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 a string in RTF at the end of another RTF string, use RTFAdd.
Example
// 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)
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 subscript 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: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help