RTF:LoadRTFFromField() Method

<< Click to Display Table of Contents >>

Navigation:  RTF Class >

RTF:LoadRTFFromField() Method

Previous pageReturn to chapter overviewNext page

Purpose

To load and parse a RTF stream from a DBF field.

Syntax

<oRTF>:LoadRTFFromField(xField, [xAlias]) lSuccess                                (LOGIC)

Arguments

xField

The field containing the RTF stream (character name or numeric position).

xAlias

Optional. The alias where the field is located (character, numeric or DBServer).  The default is the current area.

Description

This method loads and parses a RTF stream from a DBF field. The field must contain a valid RTF stream or it is ignored.  This method returns TRUE if successful, or FALSE if an error is encountered.  If this method executes successfully, you can display the RTF on a RpPrinter or PtrDevice via the RTF:DrawText() method.

 

Due to the 64K size limit of strings in a 16 bit application, the size of the RTF stream must be less than 64K when using the RP2/16 runtime.

Example

// Load a RTF stream from a field

oRTF:LoadRTFFromField("RTFField")