如何在短时间内编写代码来删除vc ++中的批处理? [英] How to write code shortly than this for deleting the batches in vc++ ?
本文介绍了如何在短时间内编写代码来删除vc ++中的批处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if (theApp.m_pGeneric->OpenRecordSet(&recordSet,GetSQLStatement(GET_NEXT_BATCHES_PRM_ID,ACTIVE,csNoOfMonths)))
{
while (recordSet.IsEOF() != TRUE)
{
recordSet.GetFieldValue((short)lColNum, nSecId);
recordSet.GetFieldValue((short)lColNum+1, csPrmId);
sbatchNode.strPrmBatchID=csPrmId;
/*if (theApp.m_pGeneric->OpenRecordSet(&recordSet,GetSQLStatement(DELETE_THE_GET_BATCHES_PRM_ID,ACTIVE,csNoOfMonths)))
{};*/
OnDeleteWithSnap();
recordSet.MoveNext();
}
}
推荐答案
我在sql语句中写了一个代码,如下所示,但是我得到了一个找不到ID的错误
如何纠正这个
/ * if(theApp.m_pGeneric- > OpenRecordSet(&recordSet,GetSQLStatement(DELETE_THE_GET_BATCHES_PRM_ID,ACTIVE,csNoOfMonths)))
{}; * /
i wrote a code in sql Statements like this as shown here but iam getting a error that is id not found
how to rectify this
/*if (theApp.m_pGeneric->OpenRecordSet(&recordSet,GetSQLStatement(DELETE_THE_GET_BATCHES_PRM_ID,ACTIVE,csNoOfMonths)))
{};*/
这篇关于如何在短时间内编写代码来删除vc ++中的批处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文