RosettaCodeData/Task/Increment-a-numerical-string/LiveCode/increment-a-numerical-string.livecode

5 lines
218 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
put "0" & "1234" into myString -- I think this will result in an internal string representation
add 1 to myString -- automatically converts to a number
put "The number is:" && myString
-- outputs "The number is: 1235"