NewString = toString$(msg[0]) + toString$(msg[1])
Posted: Wed Apr 02, 2014 5:46 pm
Hi
info:
msg is a variable type of String[100] that i read in from RS232..
i try simple this
but the NewString ( in #char ) is false..
i try this
LC1..LC2 are String Variables [20]
this will go on...
msg = Hello
NewString = 104101108108111
this is ok...
why?
what make i wrong with this
and how can i make the newString as "hello" again
i would change the "104101108108111" to "hello"
example the other function from char$()
104 = char$("h")
"h" = ????(104)
like this
Thank you for your teach this!
best wishes
Rudi
info:
msg is a variable type of String[100] that i read in from RS232..
i try simple this
Code: Select all
NewString = toString$(msg[0]) + toString$(msg[1]) + toString$(msg[2]) + toString$(msg[3]) + toString$(msg[4])
i try this
LC1..LC2 are String Variables [20]
Code: Select all
LC1 = toString$ (msg[0])
LC2 = toString$ (msg[1])
LC3 = toString$ (msg[2])
LC4 = toString$ (msg[3])
LC5 = toString$ (msg[4])
NewString = LC1 + LC2 + LC3 + LC4 + LC5
msg = Hello
NewString = 104101108108111
this is ok...
why?
what make i wrong with this
Code: Select all
NewString = toString$(msg[0]) + toString$(msg[1]) + toString$(msg[2]) + toString$(msg[3]) + toString$(msg[4])
and how can i make the newString as "hello" again
i would change the "104101108108111" to "hello"
example the other function from char$()
104 = char$("h")
"h" = ????(104)
like this
Code: Select all
NewString = CharToString(msg[0]) + CharToString(msg[1]) +CharToString(msg[2]) +CharToString(msg[3]) +CharToString(msg[4])
Thank you for your teach this!
best wishes
Rudi