Ask a Question related to ASP Database, Design and Development.
-
peteyjr #1
Converting Boolean into Bit
Hi
Can anybody help to to transfer a value from Controlbox (boolean) into an
SQL-Server (saved as bit). How am I able to convert boolean to bit. Any help
is well appreciated.
Thanks Peter
peteyjr Guest
-
boolean cfsqltype
Can someone please advise what cfsqltype should I used for boolean (true/false)? I've tried cf_sql_bit, but my results were inconsistent. i.e. ... -
Boolean Searches
I am trying to implement a boolean type search . The current search that I have searches for exact matches, if the input has multiple words. I want... -
Converting SQL Server "bit" field to a CLR boolean-- has to be a better way
I'm using the DataBinder.Eval() method to output the value of a SQL Server bit field. In order to convert this value to a boolean I go through the... -
Boolean constructor...
Hello, When I instanciate a boolean with a string for an argument, and the display the variable for example var b:Boolean = new Boolean("ASDF");... -
boolean operation
hi all, what is oposite of if ($_periode == NULL || $_periode == "") it is not if ($_periode != NULL || $_periode != "") kind regards -
Ray at #2
Re: Converting Boolean into Bit
Function CBit(BooleanVar)
CBit = Abs(CInt(BooleanVar))
End Function
Ray at work
"peteyjr" <peteyjr@web.de> wrote in message
news:bvb90h$4mp$1@news.BelWue.DE...help> Hi
>
> Can anybody help to to transfer a value from Controlbox (boolean) into an
> SQL-Server (saved as bit). How am I able to convert boolean to bit. Any> is well appreciated.
>
> Thanks Peter
>
>
Ray at Guest
-
peteyjr #3
Re: Converting Boolean into Bit
Cant change boolean into integer without getting a error msg
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> schrieb im
Newsbeitrag news:OGvt21n5DHA.1664@TK2MSFTNGP11.phx.gbl...an> Function CBit(BooleanVar)
> CBit = Abs(CInt(BooleanVar))
> End Function
>
> Ray at work
>
>
> "peteyjr" <peteyjr@web.de> wrote in message
> news:bvb90h$4mp$1@news.BelWue.DE...> > Hi
> >
> > Can anybody help to to transfer a value from Controlbox (boolean) into> help> > SQL-Server (saved as bit). How am I able to convert boolean to bit. Any>> > is well appreciated.
> >
> > Thanks Peter
> >
> >
>
peteyjr Guest
-
Ray at #4
Re: Converting Boolean into Bit
Can you show an example and indicate what the error message is?
Ray at work
"peteyjr" <peteyjr@web.de> wrote in message
news:bvbb04$6us$1@news.BelWue.DE...Any> Cant change boolean into integer without getting a error msg
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> schrieb im
> Newsbeitrag news:OGvt21n5DHA.1664@TK2MSFTNGP11.phx.gbl...> an> > Function CBit(BooleanVar)
> > CBit = Abs(CInt(BooleanVar))
> > End Function
> >
> > Ray at work
> >
> >
> > "peteyjr" <peteyjr@web.de> wrote in message
> > news:bvb90h$4mp$1@news.BelWue.DE...> > > Hi
> > >
> > > Can anybody help to to transfer a value from Controlbox (boolean) into> > > SQL-Server (saved as bit). How am I able to convert boolean to bit.>> > help> >> > > is well appreciated.
> > >
> > > Thanks Peter
> > >
> > >
> >
>
Ray at Guest
-
Bob Barrows #5
Re: Converting Boolean into Bit
peteyjr wrote:
Yes you can. This line of code does not generate an error:> Cant change boolean into integer without getting a error msg
Response.Write cint(true)
I think the issue is that you are not dealing with a boolean value. Convert
the value explicitly using CBool before using CInt. If the CBool function
raises an error, then you need to figure out what the value actually is,
using response.write.
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Evertjan. #6
Re: Converting Boolean into Bit
peteyjr wrote on 29 jan 2004 in microsoft.public.inetserver.asp.db:
if boolean then result=1 else result=0> Cant change boolean into integer without getting a error msg
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest



Reply With Quote

