Mega Search
23.2 Million


Sign Up

Make a donation  
Original DataTypes from DBF...  
News Group: embarcadero.public.bde.general

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 ?

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 15-Jan-2015, at 5:20 AM EST
From: roberto novakosky
 
Re: Original DataTypes from DBF...  
News Group: embarcadero.public.bde.general
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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Jan-2015, at 2:42 AM EST
From: roberto novakosky
 
Re: Original DataTypes from DBF...  
News Group: embarcadero.public.bde.general
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 ?
>

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jan-2015, at 8:54 AM EST
From: quinn wildman