TrkField.MaxLength (read-only property)

property MaxLength
Syntax: long = object.MaxLength
Read Only property. Represents the size of a column in the database table. This property is applicable only to the fields of the String type (DataType value of 8).


Dim oField As Object 'For TrkField Object

'Get the records by using TrkTable.ReadDB method...

For Each oField In oTrkRecord.TrkFields
    MsgBox "Field Name: " oField.Name
    If oField.DataType = 8 Then 'String
       MsgBox "Field Value: " & oField.Value
       MsgBox "Field Maximum Char Length:" & oField.MaxLength
    End If