Hello ...
I have Made a little example with increasing number and autoconverts to a String but found perhaps a Bug?
123456789101112131415161718192021222324252627282930313233343536373839'---Script created on 02-24-2024 17:49:57 by lionheart
'
'
uses
"ui"
long
flag = 10
flag++
msgbox
str
$(flag)
'11
'thinbasic result 10 ?
'
' number to an increasing string
'
'1)
string
s =
"200"
s =
val
(s)+1
'201
msgbox
s
'result: "201"
'thinbasic result: 2001
'2)
long
k
k++
s =
val
(s)+k
msgbox
s
'result: "202"
'thinbasic result : 2001
'3)
string
m =
" Mona"
string
st =
"3000 "
+ m
st =
val
(st)+1
msgbox
st + m
'result: 3001 Mona
'thinbasic result: 30001
'4)
long
km = 100
km++
string
m =
" Mona"
string
sr =
"3000 "
+ m
sr =
val
(sr) +
val
(km)+1
msgbox
sr + m
'result: 3102 Mona
'thinbasic result: 30001001
Bookmarks