
Signature
Happy Coding!
Morten Wennevik [C# MVP]
No, you shouldn't have to test it. You should be able to cast it into an
integer and get back 0 or 1 directly.
> Hi Martin,
>
[quoted text clipped - 4 lines]
> A boolean value can't be translated to any other value, so you will need
> to test it, if true use 1, otherwise use 0.
Morten Wennevik - 27 Oct 2004 06:20 GMT
> No, you shouldn't have to test it. You should be able to cast it into an
> integer and get back 0 or 1 directly.
To add to this, there is no CType in C#, but you get the same effect using
Convert.ToInt32(bool)

Signature
Happy Coding!
Morten Wennevik [C# MVP]