- This topic has 2 replies, 2 voices, and was last updated 4 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › convert string to int
Hi, I wont to convert string to int;
this is my array:
words(“pop”, “temp”,”6″)
and this is my code:
temp=SHORT(words[2])
num= 5+ temp
and the warning is:
“string not long enough to convert to this structure”
can you help me?
SHORT is part of the DLL interface – probably not what you want.
You can use Number to convert strings to numbers.
e.g. Number(“5”) + 2 => 7
Similarly, you can use String to convert the other way.
e.g. String(5) => “5”
tanks