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.
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
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.
Any clue?.
Thanks.
Moises,
ADS support 'TimeStamp' fieldtype.
I'm only using v10
Hello,
I am afraid this sample does not work, it does not cr茅ate the dbf:
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.
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,
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?.
Solved,
Not supported and must use ADT tables.