There is a function:
int readCoord(String coord) { String pos; String whatFind = coord + "="; int startPos = PosEx(whatFind, XX); int endPos = PosEx(";", XX, startPos); pos = XX.SubString(startPos+2, endPos - startPos-2); int posConverted = StrToInt(pos); return posConverted; ShowMessage(pos); // LOG } I use this:
int posX = readCoord("x"); Label4->Caption = posX; int posY = readCoord("y"); Label5->Caption = posY; int posR = readCoord("R"); Label6->Caption = posR; Counts nothing and knocks an error:
'' is not valid integer value
I do not understand where I did something wrong
atoi()somewhere in the depths of this thing. - igumnov