count le number of caracters in alphabetic variable content.

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
nifago
Posts: 1
Joined: April 27th, 2018, 11:33 am
Location: BURKINA FASO

count le number of caracters in alphabetic variable content.

Post by nifago »

Hello,
how can i count the number of caracters in alphabetic variable content.
Thank you
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Post 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)));
Post Reply