Page 1 of 1

Using dbftype + , T , =

Posted: Thu Jan 11, 2018 10:06 am
by Franklin Demont
Hello ,

After creating a dbf-file as :

Code: Select all

aStruct := {{"Fld1","+",2,0},{"Fld2","=",10,2},{"Fld3","T",8,0},{"Fld4","@",10,0},{"Fld5","D",10,0}}
DbCreate("TestFld.dbf",aStruct,,.T.)
APPEND BLANK
Fieldput(5,Date())
//Fieldput(2,DateTime())
Fieldput(3,DateTime())
Fieldput(4,DateTime())
 
How can we recognize this types again ?

? fieldtype(1) gives 'N' , how we know it was created as "+" ?
? fieldtype(2,3,4) gives 'D' , how we know it was created as "=,T,D" ?

Frank

Re: Using dbftype + , T , =

Posted: Thu Jan 11, 2018 11:38 am
by Enrico Maria Giordano
Works fine using the current version of xHarbour.

EMG

Re: Using dbftype + , T , =

Posted: Fri Jan 12, 2018 3:29 am
by nageswaragunupudi
FieldType( fldnum ) is displayed as +, =, T or D as the case may be.

Re: Using dbftype + , T , =

Posted: Fri Jan 12, 2018 10:23 am
by Franklin Demont
Hello ,

It is ok , i was confused using VALTYPE(Fieldget(1)) , giving 'N'

Frank