Conversion Bit to String
Posted: Wed 10 Oct 2018 16:35
Hi,
i have a question to use Bit-Fields with Delphi 7 / UniDAC 4.5.9 on MS Sql-Server 2012:
I created a table:
The Datafield "inv_IsBilled" contains 0 or 1. Then I use TUniQuery:
I get a record and when I show the content of the bit-field with
The result is "Wahr" (in englisch: true). But i expect '0' or '1'.
What can i do? Do I have to change an option?
Thanks in advance for any help.
Kind regards,
Gerd Brinkmann
invent GmbH
i have a question to use Bit-Fields with Delphi 7 / UniDAC 4.5.9 on MS Sql-Server 2012:
I created a table:
Code: Select all
CREATE TABLE [dbo].[inv_WWS_Activity](
[RecId] [char](32) NOT NULL,
[inv_IsBilled] [bit] NULL,
...
Code: Select all
select RecId, inv_IsBilled
from inv_WWS_Activity'
where RECID = '12345'
Code: Select all
ShowMessage (MyQuery.FieldByName ('inv_IsBilled').AsString);
What can i do? Do I have to change an option?
Thanks in advance for any help.
Kind regards,
Gerd Brinkmann
invent GmbH