count le number of caracters in alphabetic variable content.

Other discussions about CSPro
nifago
Posts: 1
Joined: April 27th, 2018, 11:33 am

count le number of caracters in alphabetic variable content.

Postby nifago » May 13th, 2018, 9:41 am

Hello,
how can i count the number of caracters in alphabetic variable content.
Thank you

Gregory Martin
Posts: 1077
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Postby Gregory Martin » May 14th, 2018, 8:14 am

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


Return to “Other”