ADS and time fields [done]

ADS and time fields [done]

Postby MOISES » Fri Nov 07, 2014 12:40 pm

Hello,

I would like to know it latest ADS versión, I guess it´s 11, supports Time "T" fields.

Also, what advantages has versión 11 over versión 10?.

Thank you.
Last edited by MOISES on Sat Nov 22, 2014 11:23 am, edited 2 times in total.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: ADS and time fields

Postby MOISES » Fri Nov 14, 2014 9:40 pm

Any clue?.

Thanks.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: ADS and time fields

Postby fraxzi » Sat Nov 15, 2014 2:32 am

Moises,

ADS support 'TimeStamp' fieldtype.

I'm only using v10
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: ADS and time fields

Postby MOISES » Fri Nov 21, 2014 10:07 am

Hello,

I am afraid this sample does not work, it does not créate the dbf:

#include "ads.ch"

REQUEST HB_Lang_ES
REQUEST HB_CODEPAGE_ESWIN


//-------------------------------------------------------------------------------------------------------------
FUNCTION MAIN()
//-------------------------------------------------------------------------------------------------------------

LOCAL aStruct, cFichero, nRet := 0



// Idioma español para Harbour
HB_LangSelect("ES") // Para mensajes, fechas, etc..
HB_CDPSELECT("ESWIN") // Para ordenación, requiere CodePage.lib



REQUEST DBFCDX, DBFFPT

Request ADS,ADSKeyCount,ADSKeyNo,OrdKeyCount,OrdKeyNo, AdsGetRelKeyPos, AdsSetRelKeyPos

RddRegister( "ADS", 1 )
RddSetDefault( "ADS" )


adsSetServerType( 1 ) // ó ADS_LOCAL_SERVER


//setting up the file types
adsSetFileType( ADS_CDX )


// resto de sets
AdsRightsCheck( .F. )
SET DELETED ON





aStruct := { { "NAME", "C", 15, 0 },;
{ "DATE", "D", 08, 0 },;
{ "TIME", "T", 08, 0 },;
{ "TEXTO", "C", 50, 0 } }



cFichero := hb_dirbase() + "MOISES.DBF"
FErase( cFichero )


nRet := DbCreate( cFichero, aStruct ) //, "DBFCDX" )
Alert( "DbCreate() " + cValToChar( nRet ) )




USE &cFichero NEW
APPEND BLANK

REPLACE FIELD->NAME WITH "Test Moises"
REPLACE FIELD->DATE WITH Date()
REPLACE FIELD->TEXTO WITH "Bla bla bla"
DbGoTop()

Browse()


DbCloseAll()

QUIT

RETURN NIL


Any clue?.

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: ADS and time fields

Postby Marcelo Via Giglio » Fri Nov 21, 2014 12:05 pm

Moises,

DBFs are DBFs for ADS too, then for use other data types out of the classic DBF types you need to use ADT tables

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1051
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: ADS and time fields

Postby MOISES » Fri Nov 21, 2014 2:03 pm

Marcelo,

Thanks, but DBFS support this data type field, "T", so DBFS via ADS should also support it.

When changing adsSetFileType to ADSADI, how can I create a table with the timestamp field please?.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: ADS and time fields

Postby MOISES » Sat Nov 22, 2014 11:22 am

Solved,

Not supported and must use ADT tables.

http://devzone.advantagedatabase.com/fo ... s#fmanswer
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests