DatabaseRecord.FieldType

From Xojo Documentation

Revision as of 13:42, 11 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)))