Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a method to count character within the field

Status
Not open for further replies.

H1004

MIS
Oct 28, 2003
136
US
I want to know how many character are in that particular field, and I was wondering if WebFocus has a function that does that.
For example,

Name Field has this for data ---> Smith
With this function, it would return 5 for a total of 5 characters
Thank you for your help.
 
ARGLEN measures the length of a character string excluding trailing spaces.
The syntax is
ARGLEN(inlength,infield,outfield)
Thus
CHARS/I3 = ARGLEN(25, NAME, 'I3');

inlength is the length of the input field or the name of a field that contains that value (integer).

infield is the name of the field with the character string (alphanumeric).

outfield is the name of an integer field to contain the result or the format of the field in single quotes. In Dialog Manager, you must specify the format. In Maintain, you must specify the name of the field.
 
Thank you,
I went online and search, and I got the same thing.
Again, thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top