News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Using the Modifier function on a Variable

Started by JohnB, May 17, 2022, 04:50 PM

Previous topic - Next topic

JohnB

Can I apply modifiers to Variables
e.g.
Dim MyString As String
Dim MyValue As word
MyWord = 1234
MyString = Dec MyWord
or can I only do it within a command like HSerOut
JohnB

JohnB

JohnB

top204

The "modifiers" are only for commands. For Strings, use the Str$ function.

I am looking into making the String assignment also use the Dec, Hex and Bin, etc, modifiers. But it does have some difficulties in applying it to that because they look for commas between them, while Strings use addition characters.