booleans are always either true or false. So there cannot be an 'i don't
know' option. It's always either yes or no - it's never anythign else. So if
you don't set it to anything, the default is 'no'.
You could try using the SqlBoolean structure, which has a Null static member
you could set it to - which would then denote it is null (though setting it
to Nothing, wouldn't work, as this is a value type as well). However, this
isn't as widely used or intuitive as using a boolean.
"JohnZing" <jo**********@S.P.A.M.yahoo.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Marina" <so*****@nospam.com> wrote in
news:uO*************@TK2MSFTNGP10.phx.gbl:
So what happens, is that:
IsAdmin = Nothing
and
IsAdmin = False
got it, thank you
but,then, how can i implement this:
function test(byval IsAdmin as boolean)
If IsAdmin = Nothing Then
return "I don't Know"
elseIf IsAdmin=False then
return "Yes"
elseIf IsAdmin=True then
return "No"
End if
end if
sometimes i don't know if IsAdmin is True or False
I thought i could use
label.text=test(nothing)