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.
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。
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.
数据类型
变体
访问
读取
用法
- res = obj.Result()
错误代码
该清单不完整 -- 待定
- 0 - 成功
- 2 - 警告
- 12 - 内存不足
- 37,38 - 无法检索结果
- 77 - MethodEvaluationTimeLimit溢出
- 78 - 计算中值
Enable comment auto-refresher