Xbasic

*PLAIN_TO_BIN Function

Syntax

RTF_Binary_Text as B = *PLAIN_TO_BIN(C text)

Arguments

RTF_Binary_Text

Binary formatted RTF text as it exists in a RTF memo field.

text

Unencoded ASCII text.

Description

The *PLAIN_TO_BIN() function returns the RTF encoded version of plain text.

Example

? *plain_to_bin("edward")
= 0000 : 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00
0010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0030 : 00 00 00 00 00 00 ff ff 00 00 02 00 00 00 00 00
0040 : 00 00 00 00 00 00 00 00 00 00 5b ff ff ff 00 00
0050 : 00 00 00 00 00 00 00 00 00 00 90 01 00 00 00 00
0060 : 00 00 00 00 00 00 54 61 68 6f 6d 61 00 65 77 20
0070 : 52 6f 6d 61 6e 00 00 00 00 00 00 00 00 00 00 00
0080 : 00 00 00 00 00 00 00 00 00 00 c3 00 a5 00 00 00
0090 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
...

See Also