Hi,

Is there any builtin function which will give value 1 for True and value 0 to false. I have following function:
VB Code:
  1. Private Function BoolToVal(ByVal blnTemp As Boolean) As Integer
  2. 'This function will return 1 if the value is true else will return 0
  3.     If blnTemp = True Then
  4.         BoolToVal = 1
  5.     Else
  6.         BoolToVal = 0
  7.     End If
  8. End Function