The MASM Forum

Members Gallery => Showcase => Topic started by: jj2007 on January 19, 2024, 10:18:30 PM

Title: Database to text format converter (Excel, Access, DBase)
Post by: jj2007 on January 19, 2024, 10:18:30 PM
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 (http://masm32.com/board/index.php?topic=94.0)):

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