PDA

View Full Version : -> QString::section()



soul_rebel
20th September 2007, 12:45
what does section return when the seperator doesnt exist in the string? or if a field after the end is requested?
QString("") or QString() or would it even produce an error?

thanks!

wysota
20th September 2007, 12:50
If the separator doesn't exist it will probably return the whole string. If you want a field after the end, it will probably return an empty string. You know... you could write a three line program to check that yourself...