tried another version i used with searching and strings...
int int_contact_id ;
if (get_contact_id.exec())
{
if (get_contact_id.next())
{
int_contact_id = get_contact_id.value(0).toInt() ;
}
}
qDebug() << " get_int_contact_id: " + int_contact_id;
int int_contact_id ;
if (get_contact_id.exec())
{
if (get_contact_id.next())
{
int_contact_id = get_contact_id.value(0).toInt() ;
}
}
qDebug() << " get_int_contact_id: " + int_contact_id;
To copy to clipboard, switch view to plain text mode
that one doesnt ether return a value to the int variable..
the only row that shows what it should is the middle one... the two other with the missing integers also missing chars in front of whats there..
and funny enough seems qDebug has gotten a real cold.. heres the debug output..
Starting /home/stingray/Qt/projects/build-MediaDB-Desktop_Qt_5_1_0_GCC_32bit-Debug/MediaDB...
ompany_id =
"fname: xxxx, lname: xxxxx, email: xxxxx@xxxxx.com, phone: 20001221"
act_id:
Starting /home/stingray/Qt/projects/build-MediaDB-Desktop_Qt_5_1_0_GCC_32bit-Debug/MediaDB...
ompany_id =
"fname: xxxx, lname: xxxxx, email: xxxxx@xxxxx.com, phone: 20001221"
act_id:
To copy to clipboard, switch view to plain text mode
Bookmarks