Christof Wollenhaupt wrote:

Hi Michael,

What's not easy with ? GetWordNum(m.lcString,1,",")
Or a loop like

FOR lnWord=1 TO GETWORDCOUNT(m.lcString,",")
? GetWordNum(m.lcString,1,",") ENDFOR

Even the syntax in other languages isn't any easier, shorter or more
understandable. The GetWordNum() line would be in JavaScript (and probably
many other languages):

"Apple,Banana,Cucumber,Dates,Eggplant".split(",")[0];


Oh no, don't misread my initial post...I'm cool with using the GETWORD... functions! I just recall seeing a different way and couldn't recollect what it was (and if it was any better). I ended up leaving the GETWORD... functions in my code, as it works and is clean (and can run in VFP8).

--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



_______________________________________________
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