Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CBool - function of language VBScript

Description:
Returns an expression that has been converted to type Boolean.
Syntax:
CBool(expression As Variant) As Boolean
Calling:
b = CBool(expression)
Parameters:
expression(Variant) Any valid expression.
Note:
If expression is zero, then returns false, otherwise returns true. If expression can't be interpreted as a numeric value, then a runtime error occurs.
Example:
VBScriptSelect and copy to clipboard

Dim A, B, Check
A = 5
B = 5
Check = CBool(A = B)  'Check contains true

A = 0
Check = CBool(A)  'Check contains false
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice