Using dbftype + , T , =

Using dbftype + , T , =

Postby Franklin Demont » Thu Jan 11, 2018 10:06 am

Hello ,

After creating a dbf-file as :

Code: Select all  Expand view  RUN

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
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

Re: Using dbftype + , T , =

Postby Enrico Maria Giordano » Thu Jan 11, 2018 11:38 am

Works fine using the current version of xHarbour.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Using dbftype + , T , =

Postby nageswaragunupudi » Fri Jan 12, 2018 3:29 am

FieldType( fldnum ) is displayed as +, =, T or D as the case may be.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Using dbftype + , T , =

Postby Franklin Demont » Fri Jan 12, 2018 10:23 am

Hello ,

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

Frank
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 49 guests