>I need to lists of all open tables and cursors at different places in my code for debugging. There is no database, just free tables. How can I do that? I don't care if it's a text file or a table itself. Just want to see what is open at different times.
local ix,jx
for ix=1 to asessions(aDataSession)
set datasession to aDataSession[m.ix]
for jx=1 to aused(aInUse, aDataSession[m.ix])
? aInUse[m.jx,1], dbf(aInUse[m.jx,1])
endfor
endfor
set datasession to
Cetin