PDA

View Full Version : qstring::contains



the goat boy
13th August 2008, 16:22
Hi there

I have a little question, that is probably easy to answer.

i have a line of comma separated text.

what i want to do is check that there are at least 5 commas in a line.

so i have

line.contains(",");

how can i use that command to check that there are at least 5 commas???

Thanks

TGB

spirit
13th August 2008, 16:26
QString::count

the goat boy
14th August 2008, 07:42
thanks for you help

:):)