[SOLVED] [QML] strcmp in qml
QML and Qt Quick
3
Posts
2
Posters
9.8k
Views
1
Watching
-
wrote on 7 Oct 2011, 15:45 last edited by
Hi,
how can I compare two strings alphabetically in QML?
it's strcmp in c++.Thx
Fx -
wrote on 7 Oct 2011, 16:04 last edited by VRonin
var str1 = new String( "This is beautiful string" ); var str2 = new String( "This is beautiful string" ); str1.localeCompare( str2 );
-
wrote on 10 Oct 2011, 14:52 last edited by
Is exactly what I want.
Thx
1/3