PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
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 : wd250obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment