version 2004
PGSQL_GetStringValue (resID; rowIndex; fieldIndex; stringValue) Longint
| Parameter | Type | Description | |
| resID | Longint | Result ID returned by PGSQL_Execute | |
| rowIndex | Longint | Row index | |
| fieldIndex | Integer | Field index | |
| stringValue | String | Value returned (String) | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetStringValue command gives the field value of the string type for a field index, at a row index. It returns an error code (Longint) where 0 means no error. fieldIndex and rowIndex are 0 based.
resID is a Longint that corresponds to the result ID returned by PGSQL_Execute.
rowIndex is a Longint that corresponds to the row index (0 based).
fieldIndex is an Integer that corresponds to the field index (0 based).
stringValue is a String that is returned which corresponds to the String value.
Example
C_STRING($myString) $err:=PGSQL_GetStringValue(resID;3;$i;$myString)