Page 2 of 2

Re: split string?

Posted: 02 Mar 2015 19:08
by oldgearguy
newtfish wrote:Thanks oldgearguy.

This is brilliant. Works perfectly.

Cheers

N
You're welcome. Glad it's what you need. As I noted -- if you're in complete control of the data coming in, you can probably get away with what I have with maybe a touch more error handling in case of no decimal point or no space. If you're getting data 'from the wild', then you'll have to beef up the checking even more.

For the normal case that you gave as an example, what's there should be OK.