I am working with some VB.NET code that seems to be casting a boolean value to an integer using CInt(myBoolean). The odd thing that is happening is that it retu
CInt(myBoolean)
I hope that is can help others work with Booleans inside VB.NET. Just as a better way to write the VB.NET that Roger wrote:
Public Function BoolToMySql(bVal As Boolean) As Integer return If(bVal, 1, 0) End Function