CAEngine::Flags

Revision as of 08:54, 20 October 2015 by Jhuawen (talk | contribs) (Created page with "= 另请参考 =")

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

ADE 4.6新特征

描述

A bit field of flags that control certain properties of ADE.

  • 1 = Allow hiding and unhiding of definitions.
    When this is not set, you cannot change the Att__CloakDefn attribute from ADE. Since applications in ADE are usually using a model that was previously build in Analytica, you will usually want this off. If you wanted to allow a user to hide or unhide definitions from your application, as they can in Analytica Enterprise, then you would need set this flag.

数据类型

unsigned long:无符号长整型

访问

读 / 写

示例用法

 CAEngine ade = new  CAEngine;
ade.Flags = ade.Flags | 0x0001;          //允许隐藏/取消隐藏。C#、C++ 和其它语言中的位或运算符。

设置Att__cloakDefn =

如果你尝试设置Att__cloakdefn而没有0x0001标记,将导致错误产生。

ade.Flags = ade.Flags & ~1;              // 不允许隐藏/取消隐藏定义
 CAObject xObj = ade. Get("X");
xObj.SetAttribute("Att__cloakDefn",0);   // fails
if (ade. ErrorCode!=0) {
  // 错误代码36 = Attribute不能被设定
  //  OutputBuffer是 "你不能隐藏/取消隐藏的x的定义"
}

另请参考

Comments


You are not allowed to post comments.