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
Returns the text without the formatting characteristics specific to the RTF format. This text can be found:
  • in an edit control in RTF format.
  • in a character string.
  • in an RTF control of a WINDEV report.
The text without formatting can be used to perform a search for example.
Reminder: By default, when retrieving the content of an RTF control, the retrieved value contains several formatting tags.
For example: "\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;".
Versions 19 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 19
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWindows
// If the RTF edit control is empty
s is string = RTFToText(EDT_RTFEdit)
IF s = "" THEN
Info("Empty input")
END
Syntax
<Result> = RTFToText(<RTF Text or Name of RTF Control>)
<Result>: Character string
Text found in the RTF control (without the RTF tags).
<RTF Text or Name of RTF Control>: Character string (with or without quotes)
  • Name of RTF control.
    WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This type of parameter is not supported.
  • Character string in RTF format.
Remarks
WEBDEV - Server code The RTF tables are not supported.
WEBDEV - Server code The RTF tables are supported.
Related Examples:
Switching from the RTF format to the HTML format Unit examples (WINDEV): Switching from the RTF format to the HTML format
[ + ] Using RTFToHTML and RTFToText.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment