count__words = OCCURS( "," mystring ) + 01
&& will get the word count

STORE ALINES( array__words, mystring, 13, "," ) TO count__words
&& will get the word count and populate an array with the words

STORE ASCAN( array__words, "Banana" ) TO number__Word
&& finds the index of a specific word

Is this what you're looking for?

Blue Skies!

Joe

MB Software Solutions wrote:

> Got a string:  "Apple,Banana,Cucumber,Dates,Eggplant"
>
> Is there an easier way than using GETWORDCOUNT and GETWORDNUM to get
> these individual values?
>
> tia,
> --Michael
>
> --
> Michael J. Babcock, MCP
> MB Software Solutions, LLC
> http://mbsoftwaresolutions.com
> http://fabmate.com
> "Work smarter, not harder, with MBSS custom software solutions!"
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to