hello, i am actually receiving data from a embedded system on rs232 which i am retrieving and saving it into sq-lite db. once it is saved i am retrieving back the data from the bulkdb table in which it is present, for data alignment so that i have the actual channel data from the frame which i receive.. Everything is fine, when i retrieve back data the frame id is removed properly but by the time 2nd row in the db starts there is miss in the count and the data is not aligned properly.. so i though i will restrict the size of the QString to hold exactly 2944 chars, One Master frame has so many chars i.e Channel data with Frame id. So that i will have exactly one master frame data every time i do this frame id removing for one whole master frame.
datstr.resize(2944);
for(int j = 0; j < rowdata.count(); j++)
datstr.append(rowdata.at(j));
newdat.append(datstr.mid(posi, 80));
posi+=92;
datstr.resize(2944);
for(int j = 0; j < rowdata.count(); j++)
datstr.append(rowdata.at(j));
newdat.append(datstr.mid(posi, 80));
posi+=92;
To copy to clipboard, switch view to plain text mode
datstr.clear();
but this code does't help me , after the first row of data aligning there is a problem..
thank you
Bookmarks