请教,出现:Invalid variant operation是什么意思?多谢!
ntcxh 2008-10-10 03:57:43 我有如下一段代码:
if(input->Query1->IsEmpty())
{
input->Query1->Append();
input->Query1->FieldByName("物料编号")->Value = input->Table2->FieldByName("物料编号")->AsString;
input->Query1->FieldByName("仓库编号")->Value = input->Table4->FieldByName("库号")->Value;
}
else
input->Query1->Edit();
input->Query1->FieldByName("数量")->Value = input->Query1->FieldByName("数量")->Value - d + StrToInt(input->DBEditEh6->Text.c_str());
input->Query1->Post();
最初运行都是好的,可不知为何,现在运行出现如题的出错信息?