I just want to know where did i go wrong with these blocks

Hello everyone, I just want to know what is wrong with these blocks

What you see here is,
-when i get value from previous screen, it displays its value and store it via TinyDB
-then when i close the app, the values will be saved
-last is when i open the apps, the values are still there…

BUT, i still couldn’d figure this out.

Special thanks to @dora_paz , @Still-learning, and everyone who taught me about the things i want to know…

Thank you so much guys. Hope you’ll be patient long enough for me to learn everything… God bless y’all.

may i know what you are doing at here?

Because if no such details found it will continue to save empty string only

remove the store tag from here…

Also this is not the correct way of using conditions,

, it seems like loop, not structurally constructed good.

player_name is the text i want to save when the app closes…

i got the value or the name from previous screen, which i stored in tiny_DB1…
that’s why i was trying to get the value, but every time the app re opens, the value is gone… and i cannot input anymore since i set it to only once when the app is opened for the first time

do not try to save at the time of closing… Once player started to play the quiz, however he might have entered his name some where, so in that place it self just save it… and you can take it at any time. no need to save the name again at naywhere

i already tried everything i can… and everything that comes to my mind…

would you like to have a look at my project and correct it?
the deadline is in two days… and i haven’t finisg this yet…

sorry for being desperate… but if you could just look at it…

ya of course, May i know the size of your aia? i am suffering with slow net it seems so hard to upload if it were in mb

its almost 10mb… ill just reduce the size a bit… ill remove some assets for now…
thank you so much…

no… wait… its the apk size…

the aia.file is very small

1 Like

Quizard_FNAL (1).aia (1.2 MB)

still in mb size… is this okay?

your tinyDB blocks arrangement only does the problem

image

ahh yes… i tried calling the same tiny_DB but it didn’t work… so i thought this was the problem. so i experimented a bit… but miserably failed

@Jae_Escarro It’s done for you:
QUIZ.aia (1.2 MB)
Happy2Help :slightly_smiling_face:

  • Technical_zone :sunglasses:

Thank you, BUT what exactly did you fixed?

@Jae_Escarro The problem was that you were comparing
Empty string from number that gave you the error…
What I fixed :
Compared Number from Number,…
If you found that helpful, you may mark that as solution…


Happy2Help :slightly_smiling_face:
TechnicalZone

That’s not accurate, math blocks have problem with empty strings or if string in not a number else… no problem

image

2 Likes

@dora_paz Thanks for figuring out that… and adding that to my knowledge,… I didn’t know this before that kodular works in that way…(some of the other programming languages works like that so I assumed). I Edited that now…

btw problem of @Jae_Escarro is solved by that… :sweat_smile:

NO. you did not solve my problem here…

the real deal is all about how should i use tinyDB properly…
I didnt have much knowledge about that…

its just that i cant figure which block did you change, there"s no comments in the block…

but thank you nevertheless.