ConvertDataTypes.comConvert data types programming in one click !

Convert Boolean to Integer in VB

    12211 hits
  • Dim vIn As Boolean
  • vIn = True
  • Dim vOut As Integer
  • vOut = CInt(vIn) 'True:-1;False:0