Language Reference Guide : System Classes : DataStream Class : SetCols Method
 
Share this page          
SetCols Method
The SetCols method checks the query for syntax errors and initializes the array associated with the Columns attribute, providing name and data type information.
This method has the following syntax:
integer = DataStream.SetCols([scope = CompositeScope])
This method has the following parameter:
scope
Specifies the scope for evaluation of expressions in the target list. This parameter is required only if the query contains parameters. It is ignored otherwise. This scope is valid for the SetCols method call itself and does not affect the Scope attribute.
If the SetCols method is successful, it returns ER_OK. If it is not successful, it returns an error status. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.