Page 1 of 1

count le number of caracters in alphabetic variable content.

Posted: May 13th, 2018, 9:41 am
by nifago
Hello,
how can i count the number of caracters in alphabetic variable content.
Thank you

Re: count le number of caracters in alphabetic variable content.

Posted: May 14th, 2018, 8:14 am
by Gregory Martin
The length function counts the number of characters. If you do not want to count blank spaces at the end of the string, you can add the strip function like this:
errmsg("NAME is %d characters", length(strip(NAME)));