Hi,
In the documentation for Qt-4.4,l at
http://doc.trolltech.com/4.4/qstring.html#replace
I think? there might be a minor error?I think there should be an "!" after the "no".QString & QString::replace ( int position, int n, const QString & after )
Replaces n characters from the specified index position with the string after, and returns a reference to this string.
Example:
QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"
As an old man that has trouble reading "coded" instructions, I find these little examples very, very helpful. I just wish there were more of them.
Thanks
Bookmarks