TrkRecords (object)

ITrkRecords Interface
Description:
TrkRecords is a collection of TrkRecord objects.

Do not instantiate this object directly. When the TrkTable.ReadDB method is called to request data from the database, the ReadDB method creates and initializes this object with any data returned by the database. If no records are returned by the database matching the condition specified in the TrkTable.ReadDB parameter, TrkRecords object is not created.

Example:

Dim oTADBRoot As Object
Dim oTable As Object
Dim oTrkRecord As Object
Dim idx As Long


Set oTADBRoot = CreateObject("TADB.TADBRoot")

If oTADBRoot Is Nothing Then
   MsgBox "Root Object is not created"
End If

oTADBRoot.Load "TRK7", ""

Set oTable = oTADBRoot.FindTable("VEHICLE ORDER", "BLENDS")
If Not oTable is Nothing
     oTrkTable.ReadDB "Item3"
     For Each oTrkRecord In oTrkTable.TrkRecords
        MsgBox "Record ID: " & oTrkRecord.ID
        ...
     Next
Else
   'Table does not exist for this Type or Group...
End If
...

Properties:
Methods: Add , Count , Item , Remove , RemoveFromCollection , Save