how to convert text to value?

Blitz3D Forums/Blitz3D Beginners Area/how to convert text to value?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Use different variables to convert from string to int. A and B have already been defined as strings when you declared them with a$="003" and b$="005". Change the code to c=Int(a$) and d=Int(b$) and e=c+d and it works fine.