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