Was this helpful?
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.
Last modified date: 12/20/2023