IF your string will remain less than 255 characters (which should be, because you defined it as standard string, so this will be max 80), then you can use the function LEN(sw1).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I send String data to serial com to thermal printer like this:
When I do not change my data in sw1 variable - everything is ok.
When I change my data and send to serial com like this:
Result on printer is bad , because I get on my printer my chars with "bushes" .... How can I change SIZE of my variable to send?
IF your string will remain less than 255 characters (which should be, because you defined it as standard string, so this will be max 80), then you can use the function LEN(sw1).
right,
thanks.