addCol Method

Class: HTML

Description

This method adds a specific column from the results set to an XML document.

Syntax

htmlObject.addCol(ResultSet resultSet, String columnIdentifier)

Parameters

resultSet

A ResultSet object name for which the retrieved data should be added to the XML document.

columnIdentifier

A number representing the location of the column to be added to the XML document.

Returns

An updated XML formatted string with an additional element and data.

When Became Available

v6.4

Example

type HTML xx=Class.new(“HTML”)

type ResultSet rs = Db.select(“CID,IRN”,“DEP”,“CID=:CID”)

if ‘rs.isEmpty() while rs.next() set return = xx.addCol(.rs,1)

 

*CID must be defined prior to the select statement.