booltostr
The booltostr function returns "true" or "false" corresponding to a boolean value which can be take the value true or false. This is useful when printing a boolean value which otherwise would print as 1 or 0.
str = booltostr( boolean_value ) boolean_value is boolean value. str is the string name "true" or "false". |
The following script prints the boolean status returned by a class method. Assume the values sPath and sAccess are known.
|
-- create a CFileDlg object |
|
-- open a file, get name and status |
|
-- prints 0 or 1 for bOK |
|
-- prints "true" or "false" for bOK |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.