Solved Iterator

Discussion in 'Plugin Development' started by Coopah, Feb 17, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    Coopah

    Is it possible to iterate over this config file similar to if it was a stringlist?
    Code:
    315d9260-3ef3-4bee-a6f9-9063661898d8:
      Class:
        Skill1: 3
        Skill2: 1
        Skill3: 3
        Skill4: 5
    So can I get all the strings attached to the 'Class' section? For instance Skill1, Skill2 etc.

    I know how to do it if it's a stringlist but this is a bit different.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Coopah getKeys(false) will return a set.
    Make sure that the configurationsection that you use it onis the Class one though.
     
    Coopah likes this.
  3. Offline

    Coopah

    @timtower oh thanks mate I completely forgot about getKeys!
     
    timtower likes this.
Thread Status:
Not open for further replies.

Share This Page