Re: Bad getwordnum

Author: Gérard Lochon

Posted: 2014-04-13 at 01:28:32

----- Original Message -----

From: "Allen" <profox@gatwicksoftware.com>

> 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.

_______________________________________________

Post Messages to: ProFox@leafe.com

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/B95A2AD2C54841BD83A20E0DCA2BCCCC@MuriellePC

** 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.

©2014 Gérard Lochon