The configuration framework supports reading and writing TObjectList

Home Forums kbmMW The configuration framework supports reading and writing TObjectList

Viewing 0 reply threads
  • Author
    Posts
    • #55180
      TomYU
      Participant

      hi,kim

      The configuration framework supports reading and writing ObjectList.

      eg:

      TRemoteDBConnObject = class(TDBConnObject)
      private
      [kbmMW_Config(‘DBPort’,mwcdReadWrite)]
      FDBPort: string;
      [kbmMW_Config(‘DBServer’,mwcdReadWrite)]
      FDBServer: string;
      public
      property DBServer:string read FDBServer write FDBServer;
      property DBPort:string read FDBPort write FDBPort;
      end;

      TConfigObject = class(TkbmMWConfigurableObject)
      private
      [kbmMW_Config(‘DBConnList’,mwcdReadWrite)]
      FDBConnList: TObjectList;
      [kbmMW_Config(‘DBConnCount’,mwcdReadWrite)]
      FDBConnCount: Integer;
      public
      constructor Create;
      destructor Destroy; override;
      property DBConnList: TObjectList read FDBConnList write FDBConnList;
      property DBConnCount:Integer read FDBConnCount write FDBConnCount;
      end;

      best regards

      Tom YU.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.