[InfoLight-EEP for Delphi]-善用“GetClientControlManager”請參考ClientControlCenter

[InfoLight-EEP for Delphi]-善用“GetClientControlManager”請參考ClientControlCenter

在EEP一啟動時,會去讀取ConstComp.Bvc內的資訊(利如使用者帳號、密碼) ,有點類似INI檔的作用。

引用單元:UserUtils


讀取方法:

   1:  var V:Variant;
   2:    userId,password:string;
   3:  begin
   4:    GetVariantProp('Password', V);
   5:    password:= V;
   6:    GetVariantProp('UserId', V);
   7:    userId:= V;
有讀取當然有寫入方法:
   1:  var V:Variant;
   2:    userId,password:string;
   3:  begin
   4:    V:= password;
   5:    SetVariantProp('Password', V);
   6:    V:= userId;
   7:    SetVariantProp('UserId', V);

也可以刪除

   1:    DeleteProp('Password');