method pushButton(var eventInfo Event)
var
astrTables Array[] String
siCounter SmallInt
strFilename String
endVar
enumDataBaseTables( astrTables, ":work:", "*.db" )
for siCounter from 1 to astrTables.size()
; update the user on progress
Message( "Exporting Table ", siCounter,
" of ", astrTables.size(), "..." )
; extract the filename
strFilename = astrTables[ siCounter ]
strFilename =
strFilename.substr( 1,
strFilename.search( "." ) - 1 )
; export the table
exportASCIIVar( astrTables[ siCounter ],
strFilename + ".txt" )
endFor
beep()
Message( "All tables exported..." )
endMethod