CAObject::ResultType

Revision as of 06:28, 17 October 2015 by Jhuawen (talk | contribs)

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

描述

Returns the result of evaluating a variable as a variant. This is convenient when you know the result is a scalar (a non-array), since you obtain the result directly as a number, text, etc. If the result is an array, the array is collapsed into a representation of the array, which is usually not very convenient. If the result might be array-valued, it is usually preferable to use ResultTable instead.

The CAObject::ResultType property controls which result is computed (Mid, Mean, etc.). The other possible ResultTypes are usually array-valued, hence not used very often with this method.

如果变量还没有被计算,当其方法被调用时将被计算。如果这需要冗长计算,该调用将花很长时间完成。当 MethodEvaluationTimeLimit设定好后,如果超出时间限制,结果将终止, 错误代码为77。

如果在计算过程中出现错误, 错误代码将被设定为0或2以外的数值。如果在计算过程中发生警告,结果将被返回, 错误代码将为2。 OutputBuffer包含错误信息或者警告。

数据类型

变体

访问

读取

用法

res = obj.Result()

错误代码

该清单不完整 -- 待定

0 - 成功
2 - 警告
12 - 内存不足
37,38 - 无法检索结果
77 - MethodEvaluationTimeLimit溢出
78 - 计算中值

另请参考

Comments


You are not allowed to post comments.