addString Method

Class: HTML

Description

This method is used to add labels to XML documents for those areas of the data section where other methods cannot add the labels. Several uses are at the start of the data section of the document, and when the addProp method is used. When the second parameter has a value of 1, a "/" is added to the label to indicate that there will be no more data within the label.

Syntax

htmlObject.addString(String stringValue, Boolean close)

Parameters

stringValue

The string value to be used in a label of the data section of an XML document.

close

A logical field indicating that the method should add the closing section into the XML document.

Returns

An updated XML formatted string containing a label.

When Became Available

v6.4

Example

type HTML xx = Class.new("HTML")

set return = xx.addString(“MRPC098”,0)

// Adds to the variable return </MRPC098>

set return = xx.addString(“MRPC098”,1)

____________________________________________________________

The following is added to the return variable:

</MRPC098>