S
Shane Story
Why not math.abs(cint(checkbox1.checked)) ?
Steven Nagy said:No need to convert to string if you want an integer.
Would you buy icecream if you wanted a roast chicken?
Of course not. Just convert to the types that you need, as below:
Dim A1 as integer = Convert.ToInt32(CBAnswer1.Checked)
ReadAndStoreIntAnswer(A1, "XXX")
GhostInAK said:Hello Jeff,
There is no need at all for any conversion of any kind. Simply tell your
SQL table that this field has a data type of BIT. Then you can pass a BOOLEAN
as the parameter and all is well. It's a 0 or 1 in the database and a True
or False in .NET. Simplicity.
-Boo