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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal word count 1

Status
Not open for further replies.

baldr1c

Programmer
May 6, 2002
6
AU
Does anyone know how to do a word count in a report.
The report has one main text field and I need to count how many words in this field and show it as a total for the whole report. I was thinking along the lines of counting how many time a " " came up in the field and then creating a running total of this. But I cannot get it to count the spaces.

Any suggestions.

TIA
 
Baldric,

See if this gives you what you want.

StringVar Array XXX := Split({YourFieldHere},' ');
UBound XXX;

Naith
 
Thanks Naith

You can also use
UBound(Split{field}))

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top