News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

StrN SerStr - Hint SERSTR! - I do not understand

Started by Mapo, Jun 09, 2022, 03:31 PM

Previous topic - Next topic

Mapo

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?

trastikata

Dim SerStr As String * 4
Dim Temp1 As Word

SerStr = Str$(Dec4 Temp1)

Mapo

I lost a lot of time without understanding
Thank you trastikata