March 29, 2024, 04:18:03 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


DBF Creation

Started by billhsln, October 26, 2010, 02:30:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

We have a command to create MDB (Microsoft Access) files [dbCreateMDB(GETSTARTPATH+"BookShop.mdb")], but how would we create a dBase (DBF) file?

Thanks,
Bill
When all else fails, get a bigger hammer.

LarryMc

I would think you'd have to use the appropriate dbf driver and then use the appropriate SQL create command string.

But I've never done that( used to create a dbf file)
I have used IWB to read Foxpro dbf files.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

I was just thinking that since it requires a special command to create a MDB file, it would also require one for a DBF file.

Bill
When all else fails, get a bigger hammer.

Brian

Billhsln,

Assuming that you have checked Control Panel > Administrative Tools > Data Sources (ODBC)
and verified that the dBase driver is loaded (usually is by default; if not, you would have to
use the Add button to include the driver in the list)

Then it would be something like:

pDB=dbConnect("Microsoft dBase Driver (*.dbf)",dbf_filename,"")

Brian