Class: Row
Description
This method enables you to set the properties of a Row object. The properties appear as a comma-separated list enclosed in quotes. Each column takes the form of PSLtype ColumnName.
You can only assign the property definition of a Row object once.
Syntax
Row.setColumns(String properties)
Parameters
properties |
A comma-separated list of property (column) definitions of a Row object. |
Returns
Void
When Became Available
Profile v7.0
Example
// declare a Row object without instantiating it
type Row ROW
// Assign Column defs and delimiter. This code references
// an uninstantiated object, so a warning will be issued
do ROW.setColumns("String RTN,Date MODDAT,String DES")
do ROW.setDelimiter(";")
set ROW.rtn = "UCGM" // assign values by col. name
set ROW.moddat = "2004-08-16".toDate("YEAR-MM-DD")
set ROW.des = "PSL compiler main routine"
write ROW.toString() // "UCGM;59763;PSL compiler ..."