CAObject::Result

<< class CAObject

Description

Returns the result of evaluating a variable as a CATable object, with zero or more dimensions, or Nothing if the variable object cannot be evaluated. A CATable is a representation of an intelligent (multi-dimensional) array, and various methods of that object are used to access the cell data. If the result is a scalar (i.e., not an array), the CATable is zero-dimensional.

The result type returned depends on the setting of the ResultType property. By setting that property, you can retrieve the Mid-value, mean, sample, or any of the uncertain views that would be selectable on the result window in Analytica.

If the variable has not yet been evaluated, it is evaluated when this method is called. If this requires a lengthy calculation, the call will take a long time to complete.

If an error occurs during evaluation, the ErrorCode will be set to something other than 0 or 2. If a warning occurs during evaluation, a result will be returned and the ErrorCode will be 2. The OutputBuffer contains the error message or warning.


Data type

CATable

Access

read

Usage

set resTab = obj.ResultTable()

Errors Codes

This list is incomplete -- TBD

0 - success
2 - warning
37 - Could not retrieve result

See Also

Comments


You are not allowed to post comments.