News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Database to text format converter (Excel, Access, DBase)

Started by jj2007, January 19, 2024, 10:18:30 PM

Previous topic - Next topic

jj2007

In case you don't have Microsoft Office installed on your machine but still want to see the contents of Excel, Access or DBase files, just drag them over the attached DatabaseToTabFormatConverter.exe

The output is a [filename].tab file. You can open it, for example, in Notepad.

Here is the complete source (you need MasmBasic of 19 Jan 2024 to build it):

include \masm32\MasmBasic\MasmBasic.inc
  Init
  .if OpenAdo(CL$()) ; v v v can be xls, xlsx, mdb or dbf files
If_ OpenAdo(0) Then Store Cat$(Left$(CL$(), Rinstr(CL$(), "."))+"tab"), AdoTable$()
  .endif
EndOfCode