Question about Basic Maker 2018

Post your questions, bug reports and suggestions here for BasicMaker 2018 for Windows.

Moderator: SoftMaker Team

Post Reply
AshleyDennison
Posts: 9
Joined: Fri Nov 23, 2007 11:04 am

Question about Basic Maker 2018

Post by AshleyDennison » Tue Nov 28, 2017 1:04 pm

Can BM scripts directly access dbf databases, perhaps using ADO or some other methods?

sven-l
SoftMaker Team
SoftMaker Team
Posts: 7367
Joined: Wed Apr 09, 2008 8:26 am
Location: Nuremberg
Contact:

Re: Question about Basic Maker 2018

Post by sven-l » Tue Dec 05, 2017 3:42 pm

No, this is not possible.
Sven Leßmann
SoftMaker Software GmbH

hen
Posts: 8
Joined: Sat Dec 06, 2014 6:53 pm

Re: Question about Basic Maker 2018

Post by hen » Wed Dec 06, 2017 11:05 am

yes we can...
a sample with the biblio.dbf shipped with SM

Code: Select all

Set oDAO36 = CreateObject("DAO.DBEngine.36")
Set oDbf = oDAO36.OpenDatabase("C:\Documents and Settings\<USERNAME>\<My documents>\SoftMaker",False,False,"dBASE 5.0")
Set oRS = oDbf.OpenRecordset("biblio")
For i = 1 To oRS.RecordCount
	sBuf = sBuf & oRS.Fields(0) & "  " & oRS.Fields(1) & chr(13)
	oRS.MoveNext
Next
Msgbox(sBuf)
<USERNAME> and <My documents> are specific to your pc

Post Reply

Return to “BasicMaker 2018 for Windows”