Hi.
query.prepare(trUtf8("SELECT browse_caption FROM descriptor_table WHERE id=':id'"));
for (m_iIndex=0; m_iIndex<m_pTableRecord->count(); m_iIndex++) {
query.bindValue(":id",(integer[m_iIndex].toInt()));
query.exec();
string[m_iIndex] = query.value(0);
query.next();
qDebug() << "String " << string[m_iIndex].toString();
m_pColumnNames->insert(m_iIndex, string[m_iIndex].toString());
}
query.prepare(trUtf8("SELECT browse_caption FROM descriptor_table WHERE id=':id'"));
for (m_iIndex=0; m_iIndex<m_pTableRecord->count(); m_iIndex++) {
query.bindValue(":id",(integer[m_iIndex].toInt()));
query.exec();
string[m_iIndex] = query.value(0);
query.next();
qDebug() << "String " << string[m_iIndex].toString();
m_pColumnNames->insert(m_iIndex, string[m_iIndex].toString());
}
To copy to clipboard, switch view to plain text mode
This code does now work (it does not return a string...actually it always returns an empty string. --> what to do)?
Bookmarks