DatabaseRecord.FieldType

From Xojo Documentation

Method

DatabaseRecord.FieldType(idx As Integer) As Integer

Supported for all project types and targets.

Returns the type of the field in the DatabaseRecord specified by idx. The fields are in a 0-based array. The field type codes are the same as those returned by FieldSchema.

Sample Code

This example displays the field type of the third field in the DatabaseRecord rec.

MsgBox(Str(rec.FieldType(2)))