eriic
December 15, 2022, 3:19pm
1
So I'm trying to make a country-capital city quiz. But when I try to get the points I've made, the next error appears:
The operation select list item cannot accept the arguments: , [3], [2]
I'm using a .csv file, where on first index I have question (city), second index the correct answer and index 3-5 are possible answers.
The points' button is "Button5"
Here are blocks:
Thx
Eric
1 Like
TIMAI2
December 15, 2022, 3:32pm
2
Your csv file, or an example of it, would be of help in solving your issue....
I presume this runtime error arises when you read the csv file ?
TIMAI2
December 15, 2022, 3:37pm
4
Try removing Capital d':
from every line in your csv
. With it included the csv is not properly formatted.
TIMAI2
December 15, 2022, 3:52pm
6
I just looked through the csv and there is also Capital de:
Try this file
base.csv (11.8 KB)
(or just remove the colon :
)
TIMAI2
December 15, 2022, 4:12pm
8
works for me
Use the double slash on the path to the csv ? (//base.csv
) - if this was the problem, you might be able to use your original csv file....
eriic
December 15, 2022, 4:16pm
9
Yes, but everything shows as always. Do you need the .aia fle?
TIMAI2
December 15, 2022, 4:19pm
10
You did not say when the error arises...I did ask / presume ?
TIMAI2
December 15, 2022, 4:24pm
12
So you did. Problem in here somewhere
eriic
December 15, 2022, 4:35pm
13
yup, it must be there, but i don't really guess what fails
TIMAI2
December 15, 2022, 4:46pm
14
From your blocks global llista repostes
only contains a list of numbers, you are trying to compare this with a string from global llista preguntes
?
eriic
December 15, 2022, 5:04pm
15
I'm trying to compare with the answer from the second column from .csv (which has correct answer)
DId you check all global variables??? using Do it
instead of guessing your problem with images, if you share the sample screen it will be easy to find out and quick fix
eriic
December 15, 2022, 5:23pm
19
Spicy_Topics:
sample screen
Bold 0 is question
Normal 0 will be a question counter
List View is for question choice
Anterior = Go to the question before the acutal one
Veure Puntuació = See score (the problem)
Seguent = Go to next queston
eriic
December 15, 2022, 5:30pm
20
in case anyone wants .aia
QUIZ.aia (12.4 KB)