realfan:CDBProcess使用说明
构造函数:
CDBProcess(const QString strType);
.......
(2014-03-04 08:47)
楼主,我用下面的语句试了一下,发现“bool CDBProcess::getFieldsValueFromRec(int idx, const char* szFldInfo, ...) const”这个函数,没有显示效果,下面是我的语句:
CDBProcess *db = new CDBProcess("mysql");
db->openDB("", "ordersys", "", "");
db->openRecordsetBySql("select * from test", 15);
QString tmpGoods;
int tmpNumber;
QString tmpTime;
db->getFieldsValueFromRec(15, "goods:%s", &tmpGoods, "number%d", tmpNumber, "time%s", &tmpTime, CDBProcess::szEnd);
qDebug()<<tmpGoods<<" "<<"; "<<tmpNumber<<"; "<<tmpTime<<endl;
输出tmpGoods等变量的结果都为空,请问这是什么原因呢?