FDO API Reference Feature Data Objects

FDO_API_COMMON FdoBoolean FdoStringP::ToBoolean FdoBoolean  defaultValue = false  )  const
 

Converts this string to a boolean.

Parameters:
defaultValue value returned when string is not recognized as boolean
Returns:
Returns true if the string in lower case is "t", "true", "y", "yes", or "1". Returns false if the string in lower case is "f", "false", "n", "no", or "0". Otherwise returns defaultValue.

Comments or suggestions? Send us feedback.