S
Smokey Grindle
I have a sproc that returns null, true or false, and I have the following
code
If cmd.ExecuteScalar Is DBNull.Value Then
Return False
Else
Return CBool(cmd.ExecuteScalar)
End If
is there any way to simplify this so i dont have to execute the command
twice? i thought maybe sqlboolean type could help but i can directly cast
the scalar to that type it seems.. anyone have any ideas?
code
If cmd.ExecuteScalar Is DBNull.Value Then
Return False
Else
Return CBool(cmd.ExecuteScalar)
End If
is there any way to simplify this so i dont have to execute the command
twice? i thought maybe sqlboolean type could help but i can directly cast
the scalar to that type it seems.. anyone have any ideas?