CAEngine::Flags

This page is a translated version of the page CAEngine::Flags and the translation is 100% complete.

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

ADE 4.6新特徵

描述

控制ADE某個屬性的位字段。

  • 1 = 允許隱藏/取消隱藏定義。
    當沒有設置時,你不能夠從ADE改變Att__CloakDefn屬性。因為ADE中的應用程式通常使用以前在Analytica建立的模型,所以你通常不需要。如果你想允許用戶從你的應用程式當中隱藏/取消隱藏定義,就同在Analytica企業版中那樣,那麼你必須設置該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.