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
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.
Example
Windows
// 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 code 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.
Component : wd250obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment