kbmMWConfiguration and TObjectList

Home Forums kbmMW kbmMWConfiguration and TObjectList

Viewing 1 reply thread
  • Author
    Posts
    • #54183
      mrluigi2017
      Participant

      Hi,

      Is it possible to use kbmMWConfiguration to read and write TObjectlist properties?

      Thanks in advance!

    • #54184
      kimbomadsen
      Keymaster

      TkbmMWConfiguration is as such not designed to storing or retrieving object lists.

      However you can iterate your list and do config.ReadConfig(lst.Objects[i]) which will then read the configuration matching the configuration attributes defined on the object instance in the list.

      If you truely want to store and retrieve a complete list of objects to and from the configuration storage, you can either marshal it to binary and use AsBinary, or to a string and use AsString.

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.