Sub SelectdbFitTest 'Structure for database #1
pointerhold(2) = db.iif(db.Pointer > -1, db.Pointer, -1)
db.Pointer = 0
db.FilePath = File.DirInternal & "/"
db.FileName = "fittest.dat"
db.Field(0,0) = "" :db.Field(0,1)=4 'I want this field as my Index
db.Field(1,0) = "" :db.Field(1,1)=4
db.Field(2,0) = "" :db.Field(2,1)=4
db.Field(3,0) = "" :db.Field(3,1)=4
db.Field(4,0) = "" :db.Field(4,1)=4
db.Field(5,0) = "" :db.Field(5,1)=4
db.Field(6,0) = "" :db.Field(6,1)=4
db.Field(7,0) = "" :db.Field(7,1)=4
db.Field(8,0) = "" :db.Field(8,1)=4
db.Field(9,0) = "" :db.Field(9,1)=0
'Last entry should have field name empty "" and length set to 0
End Sub
Sub SelectdbWorkout 'Structure for database #2
pointerhold(1) = db.iif(db.Pointer > -1, db.Pointer, -1)
db.Pointer = 0
db.FilePath = File.DirInternal & "/"
db.FileName = "workout.dat"
db.Field(10,0) = "" :db.Field(10,1)=100 'I want this field as my Index
db.Field(11,0) = "" :db.Field(11,1)=100
db.Field(12,0) = "" :db.Field(12,1)=100
db.Field(13,0) = "" :db.Field(13,1)=100
db.Field(14,0) = "" :db.Field(14,1)=100
db.Field(15,0) = "" :db.Field(15,1)=100
db.Field(16,0) = "" :db.Field(16,1)=100
db.Field(17,0) = "" :db.Field(17,1)=100
db.Field(18,0) = "" :db.Field(18,1)=0
'Last entry should have field name empty "" and length set to 0
End Sub