S
supersys
Unregistered / Unconfirmed
GUEST, unregistred user!
代码如下:
memset(sql_cmd,0,sizeof(sql_cmd));
ADOQuery1->Active = false;
ADOQuery1->SQL->Clear();
String strReplaceStr = Name;
sprintf(sql_cmd," insert into CR_Dialled (RecName,PhoneNumber,RecDateTime,TimeLength) values('%s','%s','%s','%s')",strReplaceStr.c_str(),Number.c_str(),TempTime,CRTimeLength);
ADOQuery1->SQL->Add(sql_cmd);
ADOQuery1->ExecSQL();
如果在strReplaceStr参数中有"符号出现,就会报该错误。
请高手指教
memset(sql_cmd,0,sizeof(sql_cmd));
ADOQuery1->Active = false;
ADOQuery1->SQL->Clear();
String strReplaceStr = Name;
sprintf(sql_cmd," insert into CR_Dialled (RecName,PhoneNumber,RecDateTime,TimeLength) values('%s','%s','%s','%s')",strReplaceStr.c_str(),Number.c_str(),TempTime,CRTimeLength);
ADOQuery1->SQL->Add(sql_cmd);
ADOQuery1->ExecSQL();
如果在strReplaceStr参数中有"符号出现,就会报该错误。
请高手指教