CAObject::ResultType
ADE User Guide > ADE Server Class Reference > CAObject
描述
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.
ResultType属性控制计算哪种结果:Mid(中值)、Mean(平均值)等等。其它可能的 ResultType是数组值得,因此经常使用该方法。
如果变量还没有被计算,当其方法被调用时将被计算。如果这需要冗长计算,该调用将花很长时间完成。当 MethodEvaluationTimeLimit设定好后,如果超出时间限制,结果将终止, 错误代码为77。
如果在计算过程中出现错误, 错误代码将被设定为0或2以外的数值。如果在计算过程中发生警告,结果将被返回, 错误代码将为2。 OutputBuffer包含错误信息或者警告。
数据类型
变体
访问
读取
用法
- res = obj.Result()
错误代码
该清单不完整 -- 待定
- 0 - 成功
- 2 - 警告
- 12 - 内存不足
- 37,38 - 无法检索结果
- 77 - MethodEvaluationTimeLimit溢出
- 78 - 计算中值
另请参考
Comments
Enable comment auto-refresher