Proton BASIC Community

Proton (Positron) => Proton8 threads => Topic started by: Mapo on Jun 09, 2022, 03:31 PM

Title: StrN SerStr - Hint SERSTR! - I do not understand
Post by: Mapo on Jun 09, 2022, 03:31 PM
Hi all,
in a project I have to pass data from a word variable to a string variable. (the data is number)
I use this line, which works, but it gives me a warning

Dim SerStr[4] As Byte
Dim Temp1 As Word

StrN SerStr = Str$(Dec4 Temp1)

Is there a correct way to do this data exchange?
Title: Re: StrN SerStr - Hint SERSTR! - I do not understand
Post by: trastikata on Jun 09, 2022, 03:50 PM
Dim SerStr As String * 4
Dim Temp1 As Word

SerStr = Str$(Dec4 Temp1)
Title: Re: StrN SerStr - Hint SERSTR! - I do not understand
Post by: Mapo on Jun 09, 2022, 06:00 PM
I lost a lot of time without understanding
Thank you trastikata