Returns the ID of a compute column.
SqlAltColId% ( sqlconn%, computeid%, column% )
where
The ID that the aggregate operator in the COMPUTE clause column applies to. The first column is number 1. When either the computeid% or the column% is invalid, -1 is returned. Call this function after SqlNextRow% or SqlGetRow% returns a computeid.
SqlAltColId% returns the ID of the column to which the aggregate operator applies for a particular column in a COMPUTE clause. For example, the function SqlAltColId%(sqlconn%, 1, 1) returns 2, since the COMPUTE COUNT clause in the following example refers to the second column in the select list:
select dept, name from employee order by dept, name compute count(name) by dept
SqlAData$, SqlADLen&, SqlAltLen%, SqlGetRow%, SqlNextRow%, SqlNumAlts%, SqlPrType$