A strange problem in a simple project

The project works good from 1 to 100
then, this error appears if I clicked button2 to continue counting.
I want to fix it to continue counting as much as I want
anybody can help?

Try putting a variable as counting numbers
blocks (14)

blocks (24)

@Ritshika_Saha I tried it but unfortunately it only counts up to 1 then stops

Correct, some poor advice and blocks provided by @Ritshika_Saha .

What else are you doing in your blocks with regard to adding 1? Or is it simply that as shown in your first post?

@TIMAI2 I just want it to keep counting endlessly

Please download and post each of those event block(s)/procedures here ...
P.S. These blocks can be dragged directly into your Blocks Editor workspace.

See Download Block Images for a demo.

@ABG Thanks,
It is just one block in the project

Export your .aia file and upload it here.

Sorry :pensive: I just wanted to help.

Did you set the Button1.Text to 1OO? (not 100)

The .aia file
project4.aia (1.6 KB)

I want to make it counts from 0 so I set button1 text to 0
this is the .aia file
project4.aia (1.6 KB)

Thanks @Ritshika_Saha for your concern, I appreciate this

Reload your project and try again.
It should definitively work.

1 Like

You are trying to sum a String, It's not possible in Java.

I tried it on another device and it worked fine! thank you @Anke

AI2 has Duck Typing for math, so it's okay.


Use this: StringToDouble


```It is working ...

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.