mismael85
26th June 2008, 11:14
hello every body,
i have a problem with QSqlQuery
i built a query easy and i went to the first record by using
query->next()
until now every thing works fine later in the program i used
query->seek(id)
the query went to the record i want because i investigate that by trying
query->at()
i found it on the roght record but when i try to get the text from the record no thing return
query->value(0).toString()
but, but
when i used
query->last()
before
query->seek(id)
every thing works fine
i want to know why?
and thank you
i have a problem with QSqlQuery
i built a query easy and i went to the first record by using
query->next()
until now every thing works fine later in the program i used
query->seek(id)
the query went to the record i want because i investigate that by trying
query->at()
i found it on the roght record but when i try to get the text from the record no thing return
query->value(0).toString()
but, but
when i used
query->last()
before
query->seek(id)
every thing works fine
i want to know why?
and thank you