Forums

OverviewFelgo 2 Support (Qt 5) › store records

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19405

    Bas

    hi I need to store multiple records

    is settings the best way to do this?

    and is it better to store an array

    or  store a key value pair for each record.

     

    i need to iterate through the records sometimes.

    #19410

    Günther
    Felgo Team

    Hi Bas,

    for custom data that you want to store locally, I recommend to use an additional Storage component. The settings property is also a Storage that you can use, but it is good practice to have you custom data in an own Storage / Database. You can also easily switch to a WebStorage at a later point then, in case you want to store and synchronize the data with the Game Network Service.

    Best,
    Günther

    #19412

    Günther
    Felgo Team

    Regarding Array vs Key-Value Pair for each record: As you intend to iterate through your records, it makes sense to store an Array of your records.
    You can then load the data array with all records from the storage and process it as you like.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support