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 ) 
 
  | 
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, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.