Hello,
I am having a big problem with one of my programs. In this program, a user enters text into an input box in the form of “86;21;34;02;13”, and, each of these is put into an array called mydata. Unfortunately, all I keep getting is strings. It will say mydata[0] is 86, but it is registered as a string, and I cannot add, subtract, multiply, etc. I have tried int(mydata[0]), int(String(mydata[0])), toValue(mydata[0]), but nothing seems to work. Could anyone help?
Here’s the code when they input 86;21;34;02;13 into the input box with the variable of “_root.theimport”
mydata = theimport.split(";",5)
boxnum = mydata[0]
totalboxes = boxnum + 1
boxnum shows 86, but totalboxes becomes NaN. Switching to int(mydata[0]) makes totalboxes = 0.
I am very confused on this and am hoping help some soon.
Thanks,
AK712