TDolphin TINYINT return Logical Value instead of Number

TDolphin TINYINT return Logical Value instead of Number

Postby dutch » Mon Jul 06, 2015 4:39 am

Dear All,

I try to get data from MySql via TDolphin and TINYINT(4) is not return number in database but return Logical Value (0=Fault otherwise=True).
Why does it got this value?

Thanks for any help.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: TDolphin TINYINT return Logical Value instead of Number

Postby Biel EA6DD » Mon Jul 06, 2015 7:59 am

Code: Select all  Expand view

D_LogicalValue(.F.)
 


By default tiny int is managed like logical value, just insert a call to this function and will return numbers.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Re: TDolphin TINYINT return Logical Value instead of Number

Postby dutch » Mon Jul 06, 2015 10:37 am

Dear Biel,

Thank you so much for your help.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 127 guests