DescriptionStrToBool converts the string specified by S to a boolean. If S can be converted to a number, StrToBool returns False if that number is 0, True otherwise. If S can抰 be converted to a number, StrToBool returns True if S is any of the strings listed in TrueBoolStrs (or differs from one only by case) and False if it is any of the strings listed in FalseBoolStrs (or differs from one only by case). If S is not a number and not one of the strings listed in TrueBoolStrs or FalseBoolStrs, StrToBool raises an EConvertError exception.Note: If you do not assign a value to TrueBoolStrs, it is treated as if it contains the single string 慣RUE? Similarly, if you do not assign a value to FalseBoolStrs, it is treated as if it contains the single string 慒ALSE?
DescriptionStrToBool converts the string specified by S to a boolean. If S can be converted to a number, StrToBool returns False if that number is 0, True otherwise. If S can抰 be converted to a number, StrToBool returns True if S is any of the strings listed in TrueBoolStrs (or differs from one only by case) and False if it is any of the strings listed in FalseBoolStrs (or differs from one only by case). If S is not a number and not one of the strings listed in TrueBoolStrs or FalseBoolStrs, StrToBool raises an EConvertError exception.Note: If you do not assign a value to TrueBoolStrs, it is treated as if it contains the single string 'TRUE' Similarly, if you do not assign a value to FalseBoolStrs, it is treated as if it contains the single string 'FALSE'.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货