CBool
The CBool function is one of the many ASP conversion functions
for converting a variant into a boolean value. A boolean value holds
the value true or false. It cannot hold any other value.
If an error occurs converting a value to boolean, the script will
throw a runtime error. To avoid this, you can trap the error using an
error handler as follows:
Dim sValue Dim bValue
sValue = "True" On Error Resume Next bValue = CBool(sValue) If Err.Number <> 0 Then Response.Write "Error converting value to boolean: " & sValue End If On Error Goto 0
|
 |

|