Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Original DataTypes from DBF...



Permlink Replies: 2 - Last Post: Jan 22, 2015 2:42 AM Last Post By: Roberto Novakosky
Roberto Novakosky

Posts: 2
Registered: 7/3/09
Original DataTypes from DBF...
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 15, 2015 5:20 AM
Hello ppl

With TField is possible to know if a field is ftFloat, but I would like
to know the original data type, for exemple NUMERIC(12,2) from a field
of DBD file. I need to know if a field is NUMERIC(11,2), or
NUMERIC(12,2) on DBF file.

How to do this with delphi ?
quinn wildman

Posts: 856
Registered: 12/2/99
Re: Original DataTypes from DBF...
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 15, 2015 8:54 AM   in response to: Roberto Novakosky in response to: Roberto Novakosky
How about reading the header? The file format is here:
http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm

roberto novakosky wrote:
Hello ppl

With TField is possible to know if a field is ftFloat, but I would like
to know the original data type, for exemple NUMERIC(12,2) from a field
of DBD file. I need to know if a field is NUMERIC(11,2), or
NUMERIC(12,2) on DBF file.

How to do this with delphi ?
Roberto Novakosky

Posts: 2
Registered: 7/3/09
Re: Original DataTypes from DBF...
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 22, 2015 2:42 AM   in response to: quinn wildman in response to: quinn wildman
quinn wildman wrote:

How about reading the header? The file format is here:
http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm

Very thanks !
Roberto
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02