setDataFormatAs Method

             

Specifies whether the data supplied to the object is rendered as text or HTML.

Syntax

object.setDataFormatAs(LBL_TEXT | LBL_HTML)

Parameters

object

A Label script object.

LBL_TEXT

Specifies that the supplied data is processed as text.

LBL_HTML

Specifies that the supplied data is processed as HTML.

Remarks

If the supplied data contains HTML and you want it to be processed correctly by the client browser, use the HTML option.

Use getDataFormatAs to return a string that indicates whether data supplied to the object is rendered as text or HTML.