CB.MacroResult

This function returns information about whether other Crystal Ball macro calls worked correctly. Most of the calls described in this document set a result value that CB.MacroResult returns. CB.MacroResult does not clear the result value until another Crystal Ball call changes the value.

Table 146. CB.MacroResult Returned Data Type

Returned Value

Returned Data Type

An error code that indicates what type of error the previous macro call encountered

Variant

For a list of the named constants and values that CB.MacroResult returns, see Table 149. In VBA subroutines and functions, you can check the returned value against either the named constants or values. All returned values are negative integers (or 0 if no errors occur).

Note:

This function is for compatibility with the 2000.x (5.x) versions of the Crystal Ball Developer Kit. CB.MacroResultDetail is recommended instead because it provides a wider range of errors.