Discussion:
Creating a DBF file
(too old to reply)
Beverly Howard
2010-05-14 17:16:03 UTC
Permalink
I'm working on a project where I need to write a routine within an
unrelated application in order to create a simple .DBF file.

Can someone point me to a good reference on how best to create a .DBF
file header which includes codepage information?

Thanks in advance,
Beverly Howard
Dan Freeman
2010-05-14 17:31:02 UTC
Permalink
I'm working on a project where I need to write a routine within an unrelated
application in order to create a simple .DBF file.
Can someone point me to a good reference on how best to create a .DBF file
header which includes codepage information?
Thanks in advance,
Beverly Howard
http://www.tek-tips.com/faqs.cfm?fid=3162

I assume you mean having "a non-Foxpro application creae a dbf file".
Otherwise, CREATE TABLE does the trick. <g>

And even at having a non-foxpro app create a dbf I'd be tempted to have
it leave a metadata description of the table-to-be and let VFP create
the table as needed using the metadata.

Dan
Beverly Howard
2010-05-14 22:16:56 UTC
Permalink
Exactly what I needed... appreciated.
"a non-Foxpro application <<
Yep, but on investigation, since I don't have access to the number of
records until after the file is generated, something like a csv import
look like it will be a better solution to the need.

The link is in my toolbox and will be my bedtime reading for a couple of
nights.

Beverly Howard
Dan Freeman
2010-05-14 22:30:13 UTC
Permalink
Post by Beverly Howard
The link is in my toolbox and will be my bedtime reading for a couple of
nights.
And they wonder why nerds have no social life.... <g>

VFP is really great for this sort of "generic" import partly because it
natively understands an absurdly large number of data formats (SYLK,
anyone?), and writes natively to almost as many.

You do know where to find me. :-)

Dan
Gene Wirchenko
2010-05-16 04:12:32 UTC
Permalink
Post by Dan Freeman
Post by Beverly Howard
The link is in my toolbox and will be my bedtime reading for a couple of
nights.
And they wonder why nerds have no social life.... <g>
VFP is really great for this sort of "generic" import partly because it
natively understands an absurdly large number of data formats (SYLK,
anyone?), and writes natively to almost as many.
You do know where to find me. :-)
We do? We know that we can find Beverly in bed reading at least
part of the time, but you are more elusive.

Warning for newbies on the prowl: Beverly is handsome, not
pretty.

Sincerely,

Gene Wirchenko

Loading...