Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_DB_GetFieldText

CSV_DB_GetFieldText

Returns the value of a field (as a string) contained in a specified recordset. The field is identified by a field index.

Syntax

CSV_DB_GetFieldText(hRecordSet,sField,nFieldIndex,sNullValue)

#sField:

Name of field. (Leave blank "" if nFieldIndex is to be used instead.)

#nFieldIndex:

Index of field.The first field has nFieldIndex = 0. (Used only if sField = "")

#sNullValue:

Value to return if the field value is Null

Note: If the value of the field is Null then this function will return the string specified by the argument sNullValue.

Return Value

Value of fields if successful, otherwise sNullValue.