The code I'm using is below. Unfortunately it is executing every REPLACE immediately. What am I doing wrong. I'm a little new to client/serve DB apps. Thanks, NJT
Code: Select all
if(flag==1){
String SQLtime;
MyQuery->CachedUpdates= true;
for(int i=0; iXValue[i]);
SQLstr= SQLstr + SQLtime + "','" + fileoforiginVec.at(i) + "',";
SQLstr= SQLstr + tempGraphVec.at(i) + "," + Series1->YValue[i] +",";
SQLstr= SQLstr + offsetVec.at(i) + ",'" + flagVec.at(i) + "');";
MyQuery->SQL->Add(SQLstr);
MyQuery->Execute();
MyQuery->SQL->Clear();
}
MyQuery->ApplyUpdates();
}