Display timeCounter using string

I had to create timeCounter on the screen using string. But there are some errors appeared like this “expression must have integral or unscoped enum type” blablabla


Even I decided this error like thiserror03
I still cannot understand Why I can’t use string by connecting other parameters directly.

Sorry for my English :stuck_out_tongue:

it looks like “ti” isn’t a string it’s an int, so use ofToString(ti)
so try it like this:

string strTime = "0" + ofToString(ti) + ":" + ofToString(se) + " ";
1 Like

I tried this out. Thank you so much It gave me the result I want.