PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Inserts a character string in RTF format 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 format.
Reminder: To add a string in RTF format 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 (with or without quotes)
Name of RTF control (edit control, control of a WINDEV report).
<Character String to Insert>: Character string (with quotes)
Character string in RTF format that must be inserted into the content of RTF control.
<Insertion Position>: Integer
Position where the character string in RTF format is inserted. The subscript of the first character found 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 (with or without quotes)
Name of character string in RTF format.
<Character String to Insert>: Character string (with quotes)
Character string in RTF format that must be inserted into the content of RTF string.
<Insertion Position>: Integer
Position where the character string in RTF format is inserted. The subscript of first character found in the string is set to 1.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment