Access MDB file - Datatype

33 views
Skip to first unread message

Qatan

unread,
Sep 28, 2010, 9:25:45 PM9/28/10
to harbou...@googlegroups.com
Hello,
 
    I need to get a value from a MDB (97) database from a field type "single" (lenght 4).
 
    The rows have values like:
 
    0.045
    1.473
    5.2664
    24
   
 
    But what I get is only:
 
    0
    1
    5
    24
 
    I am using hbodbc to access the database and I use ::FieldByName( 'qtd' ):Value 
    I am not sure if I should set something to get the precise value instead of integer numbers.
    Any idea? Has someone the same problem trying to get type "single" values from MDB files?     
    According to the links above the datatype "single" is precise enough for what I need and shouldn´t be a problem when accessed in a MDB 97 file via harbour ODBC. I may be doing something wrong... For "long" datatype it works fine. 
 
    Thanks for any help.
 
Qatan
Reply all
Reply to author
Forward
0 new messages