The first step in reducing blocks is to get all the questions, answer candidates, and correct answers out of text blocks and into a spreadsheet, so it can be exported as a csv text file and loaded into the Media folder.
in this case you can use files in csv format, probably easiest is to have a file with the questions like this
This is question 1
This is question 2
This is question 3
and another file with the answers
This is the correct answer for Q1, another answer 1,another answer 2, another answer 3
This is the correct answer for Q2, another answer 1,another answer 2, another answer 3
This is the correct answer for Q3, another answer 1,another answer 2, another answer 3
store the files in the assets, read them on first run of the app, convert them into lists and assign them to the question and answers list
do a search in the community for these steps in case you need help...
Yes. I understand how to store questions and answer in list. I got how to create the quiz and display result after user solve all questions. But I want to set background color green of button which user clicks if it is correct answer else red.And the background color of button should set green which has correct answer.
That is the point which I am not understanding. Sorry to bother you.
I tried to apply a generic click event to your 4 answer buttons in screen3, then discovered you had several sets of 4 buttons each in that screen, and i did not have the language skills to tell which was right.
Here is the generic button click event I wrote, to replace the Samanya1-4 click events. FirstMarathiEnglishQuizAppABG.aia (111.1 KB)
Your Screen3 is too complex for me to work with, with so many extra buttons in a language I don't understand.
P.S. Please read through the logic of this generic answer button handler and tell me if it makes sense to you.
P.P.S. It might be necessary for you to turn off button feedback for your 4 answer buttons in the Designer, in case the click animation interferes with background color replacement.
P.P.P.S. What is the difference between the two global variables CurrentflagSamanya and QuestionNumberSamanya? Why do you need two variables?
Thank You So much It Works. You are genius.
It reduces some blocks.
In my project I made 4 List for options, 1 list for questions and 1 for answers so If I take 25 question then there might be 150 blocks only for quiz answer and options. That is why I want to develop quiz app as Taifun made. to make list for option in one csv
Can this logic work with this type of list as shows in Image blocks.
Unless you are willing to wait for some one who understands your language to come along, an English version of your demo would be more likely to get a helpful response.
FirstMarathiEnglishQuizApp_copy.aia (128.4 KB)
Please have a look, I make demo in English.
You have helped me a lot. If this query will be solved, I am ready to publish app due to your help.
App misbehave as I shown in video