Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- From: Andy Stephenson <info2004@xxxxxxxxxxxxx>
- Date: Tue, 26 Feb 2008 15:53:45 +0000
I will certainly give this a go.
Thanks,
Andy
Joachim Uersfeld wrote:
There is no Boolean type in MS SQL. Try this:.
ThisValid : int;
if (something) <> 0) then
ThisValid := 1
else
ThisValid := 0;
Parameters.ParamByName('@gps_validity').Value := ThisValid;
Andy Stephenson wrote:
ThisValid : boolean;
if (something) <> 0) then
ThisValid := true
else
ThisValid := false;
Parameters.ParamByName('@gps_validity').Value := ThisValid;
- References:
- Problem with bit field using MS Sql server and Turbo Delphi 2006
- From: Andy Stephenson
- Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- From: Joachim Uersfeld
- Problem with bit field using MS Sql server and Turbo Delphi 2006
- Prev by Date: Brain Dead on SQL statement
- Next by Date: Re: Brain Dead on SQL statement
- Previous by thread: Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- Next by thread: Brain Dead on SQL statement
- Index(es):