[Harbour] SF bugtracker#2539648: ADORDD Type() & ValType() functions are interpret wrong DataTypes

Chen Kedem niki at synel.co.il
Mon Feb 2 02:15:32 EST 2009


The following bug was posted on SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=2539648&group_id=681&atid=100681

Anonymous wrote:
--------------------------------------------------------
Type() & ValType() these funtions are not interpret DataTypes of ADORDD
specially for numeric and dates datatypes. please see below examples.

#include "adordd.ch"

REQUEST ADORDD

function Main()
*---
* Test->First CHAR(20)
* Test->Last CHAR(20)
* Test->Age NUMERIC(10)
* Test->Dob_Date DATE
*--
USE Test.mdb VIA "ADORDD" TABLE "Table1"

? Type('Test->First')            // "C" -- correct 
? Type('Test->Last' )           // "C" -- correct 
? Type('Test->Age' )           // "U" -- RETURN UNKNOW 
? Type('Test->Dob_Date' ) // "U" -- RETURN UNKNOW 

USE

return nil
--------------------------------------------------------

Can someone using ADORDD can confirm this?


  Chen.


More information about the Harbour mailing list