GetBoolAsString Method
- Last UpdatedNov 06, 2025
- 1 minute read
Convert an object representing a boolean value into a string such as "0' or "1". Useful when optional boolean parameters are passed to a function as an object.
'Declaration
Public Shared Function GetBoolAsString( _
ByVal boolObject As Object _
) As String
public static string GetBoolAsString(
object boolObject
)
Parameters
- boolObject
- The bool as an object to be converted to a string.
Return Value
"1" if the boolObject is true, "0" if it is false, "" if it null or not a valid bool.