The problem I've found is that enumFileList does not capture the first table it finds. I'm not sure why this is. There are fourteen tables in the :label: directory but it only captures the next thirteen. What I've done below to work around this problem is to capture the first table name, it's attributes, and the datetime in order to place this information in the created table myself. It works well, but I'm most interested in why the first table is not in the generated table.
By the way your solution is a good one.
I'm just not sure if this is a bug in Paradox itself or if there is some other way to do this.
var
q query
ts textstream
fs filesystem
tDt datetime
tTm time
div, tName string
tDate, tTime string
tAttrib string
tHr, tMn, tSc smallInt
tSize longInt
tc,tc1 tcursor
endvar
;get list of months available
qtbl = ":labels:LB??????.db"
if fs.findFirst(qtbl) then
tName = fs.name()
tAtt = fs.accessRights()
tSize = fs.size()
tDt = fs.time()
tDate = string(date(tDt))
i = tDate.size()
if i > 9 and tDt.month() < 10 then
tDate = tDate.substr(2,(i - 1))
endIf
i = 0
tHr = tDt.hour()
tMn = tDt.minute()
tSc = tDt.second()
tTime = string(tHr) + ":" + string(tMn) + ":" + string(tSc)
; this is the start of the original code.
; it always dropped the first table in the findFirst above
fs.enumFileList(qtbl, "

RIV:__filetbl.db"

tc.open("

RIV:__filetbl.db"

tc.end()
; I added the code below to get the missing table data
; into the generated table.
tc.edit()
tc.nextRecord()
tc.insertRecord()
tc."Name" = tName
tc."Size" = number(tSize)
tc."Attributes" = tAtt
tc."Date" = tDate
tc."Time" = tTime
tc.endEdit()
tc.close()
else
msginfo("Error","No files found."

return
endif