Hi,
Thanks for all the inputs. How about this:
A string contains many fields. Each field starts with a 2 ASCII characters followed by the # sign.
Each field is delimited by a comma.
The last field is terminated by "\r\n"
We need to extract the number ( int or float ) after the # sign.
e.g. "DV#1200.03,AB#34,SH#100\r\n\0"
So for example, if a user is interested in the field "SH", he has to
Extract the SH field out,
Chop off first 3 characters
Convert the remaining string to be a number.
I hope this is helpful. I might be wrong here...but I think there's a bug in the Qt's QstringList::filter() method.
Thanks!
Bookmarks