The SqlHandle class / base.SqlHandle methods |
Returns the value of a column in the result set produced by the SQL statement.
getResultValue( index INTEGER ) RETURNING value fgl-type
Call the getResultValue() method to get the value of a column in the result set, after executing the SQL statement with the open() method and fetching a row with fetch().
The method takes the position of the column as the parameter.
The value returned can be assigned to a program variable of the type corresponding to the type name returned by getResultType().
DEFINE p_text TEXT ... LET p_text = h.getResultValue(3) ...
FOR i=1 TO sh.getResultCount() DISPLAY sh.getResultValue(i) END FOR