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
Adds a character string (in RTF or not) at the end of content:
  • of RTF edit control,
  • of RTF control in a report (WINDEV report only)
  • of character string containing a text in RTF.
Caution: Regardless of the syntax used, this function is not recommended in a thread.
Example
// Add the content of EDT_EDIT2 at the end of EDT_EDIT1
RTFAdd(EDT_EDIT1, EDT_EDIT2)
// Add "(c) 2003 MyCompany" at the end of EDT_EDIT1
RTFAdd(EDT_EDIT1, "(c) 2003 MyCompany")
Syntax

Adding a character string at the end of RTF control Hide the details

RTFAdd(<RTF control> , <New Character String>)
<RTF control>: Character string
Name of RTF control (RTF edit control in a window, RTF control in a WINDEV report).
<New Character String>: Character string
Character string (in RTF or not) that must be added to the content of the RTF control.

Adding a character string at the end of RTF string Hide the details

<Result> = RTFAdd(<RTF string> , <New Character String>)
<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 containing characters in RTF.
<New Character String>: Character string
Character string (in RTF format or not) that will be added to the content of RTF string.
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: 05/26/2022

Send a report | Local help