Save Array To Settings In Bb3?

Discussion in 'Buildbox 3.0' started by AaroArts, Sep 29, 2020.

Tags:
  1. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Hello.

    So I'm making a checklist app, and I want to save the data in an Array.
    But when I come to do something like `Settings.myChecklist` where i is the position, it doesn't recognise it.

    An alternative would be to use an Attribute to change a variable name locally so I wouldn't have to use an array.
    Any ideas? Thanks.
     
  2. mohamed awad

    mohamed awad Avid Boxer

    Joined:
    Mar 10, 2019
    Messages:
    370
    Likes Received:
    213
    yup,
    you can use Settings.yourChectlist[]
     
    AaroArts likes this.
  3. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    It wasn't working, and then I realised I was creating the array after I was trying to save to it. All sorted now. Thanks.
     
    Sean Buildbox and mohamed awad like this.

Share This Page