Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Problem with Table-Load-Save library
Started by Abdo23 Nov 01 2019 02:21 AM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Abdo23

[GLOBAL: userInfoPane.html]
Abdo23
  • Contributor

  • 118 posts
  • Corona SDK

I'm using this Table-Load-Save library and I can save and load data fine. But when I try to save again it gives me an error. Now, the error might not be obvious because basically I have a code that prints the table that has been saved and the error says:

bad argument #1 to 'pairs' (table expected, got number)

This only happens when I try to re-save after successfully saving and loading once, and it also gives an error when re-launching the app afterwards. 

                    


[TOPIC: post.html]
#2

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,861 posts
  • Corona SDK

Can you share the code you've written as I doubt it's a problem with the library itself.


  • pixec likes this

[TOPIC: post.html]
#3

Abdo23

[GLOBAL: userInfoPane.html]
Abdo23
  • Contributor

  • 118 posts
  • Corona SDK

Thanks for your help. I figured it out. 




[topic_controls]
[/topic_controls]