Antonio,
UR_FIELDINFO ?
Antonio Linares wrote:Antonio,
Yes, you can only return the types that Harbour supports.
/* FIELD types */
#ifndef HB_FT_NONE
#define HB_FT_NONE 0
#define HB_FT_STRING 1 /* "C" */
#define HB_FT_LOGICAL 2 /* "L" */
#define HB_FT_DATE 3 /* "D" */
#define HB_FT_LONG 4 /* "N" */
#define HB_FT_FLOAT 5 /* "F" */
#define HB_FT_INTEGER 6 /* "I" */
#define HB_FT_DOUBLE 7 /* "B" */
#define HB_FT_TIME 8 /* "T" */
#define HB_FT_TIMESTAMP 9 /* "@" */
#define HB_FT_MODTIME 10 /* "=" */
#define HB_FT_ROWVER 11 /* "^" */
#define HB_FT_AUTOINC 12 /* "+" */
#define HB_FT_CURRENCY 13 /* "Y" */
#define HB_FT_CURDOUBLE 14 /* "Z" */
#define HB_FT_VARLENGTH 15 /* "Q" */
#define HB_FT_MEMO 16 /* "M" */
#define HB_FT_ANY 17 /* "V" */
#define HB_FT_IMAGE 18 /* "P" */
#define HB_FT_BLOB 19 /* "W" */
#define HB_FT_OLE 20 /* "G" */
#endif
AHF wrote:Do you know What is the corresponding SQL SELECT ... CONVERT to dtos()?
SELECT * FROM table WHERE date = '20150328'
AHF wrote:DATAFACTUR LIKE '20140407'
DATAFACTUR = #04072014#
FUNCTION ADODTOS(dDate)
IF RDDSETDEFAULT() = "ADORDD"
RETURN DTOC(dDate)
ENDIF
RETURN DTOS(dDate)
STATIC FUNCTION ADODTOS(xDate)
LOCAL dDate ,cYear,cMonth,cDay
IF "." IN xDate .OR. "-" IN xDate .OR. "/" IN xDate
dDate := xDate
ELSE
cYear := SUBSTR(xDate,1,4)
cMonth := SUBSTR(xDate,5,2)
cDay := SUBSTR(xDate,7,2)
dDate := CTOD(cDay+"/"+cMonth+"/"+cYear)
ENDIF
RETURN DTOC(dDate)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], TimStone and 49 guests