ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • Special case
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
Converts text to Rich Text Format.
Example
sTextInRTF is string
sTextInRTF = TextToRTF("WINDEV is a great tool" + CR +  ...
"Developing applications is really fun")
 
// sTextInRTF contains the string with the RTF tags:
// {\rtf1\ansi\ansicpg1252\deff0{\fonttbl
// {\f0\froman\fcharset0 Times New Roman;} }
// {\*\generator WDTRAD 1.0;}
// {"WINDEV is a great tool\line
// Developing applications is really fun} }
Syntax
<Result> = TextToRTF(<Text>)
<Result>: Character string
String in Rich Text Format.
<Text>: Character string
String to be converted to RTF.
Remarks

Special case

In a Unicode project, Unicode strings with characters that use multiple alphabets will not be correctly converted to RTF. Only characters of the current alphabet will be converted to RTF. The rest will appear with '?'.
Component: wd290rtf.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help