So many ways to skin a cat. Thanks Gérard
Al

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Gérard
Lochon
Sent: 13 April 2014 08:29
To: [email protected]
Subject: Re: Bad getwordnum

----- Original Message ----- 
From: "Allen" <[email protected]>



> I just spotted a nasty. GetWordNum. If you have say aa ="A,B,C,,,F" and
ask
> for GetWordNum(aa,4,",") it gets it wrong. Seems it cannot handle blanks.
A
> pain as I just had some.


Instead of using Getwordnum, split the string in an array using
ALINES(yourarray,yourstring,3,',')

You can then access to each word, even if it's a null string.

Gérard. 



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/001201cf56ed$1ba304a0$52e90de0$@com
** 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