Solved Incrementing String value
-
@jsulm well this was my answer
INKA01010100221.000000000000000000000000000000000000000000000000
I wanted 021 only the last three digits to get added -
@Vineela no its not
show us what you're actually doing.
-
-
@J.Hilk oh yes it worked not added QChar at last thanks.
-
-
@Vineela And what is the problem? You can append a string easily to another one...
-
@jsulm oh yes ive tried that i got INKA010101001\u0001 this
I've used this codeQString dd= store; dd.append(001);
-
-
//String concatenation QString a("123"); QString b("001"); int num =1; QString c = a + b == a.append(b) == a + QString::number(num).rightJustified(3,QChar('0'));
-
-
please mark the topic as solved
-
This post is deleted!