J
juexing
Unregistered / Unconfirmed
GUEST, unregistred user!
with DM.DataModule2.tbl1 do
begin
Append ;
FieldByName('123').AsString :=Edt1.Text ;
Post ;
end;
Showmessage('数据提交成功');
edt1.Text :='';
edt1.SetFocus;
tbl1是Tadotable组件
123字段是char字符型,长度30
编译产生错误信息roject1.exe raised exception class EVariantTypeCastError with message ' Could not convert varant of type(NULL) into type (String)'.Process stopped.
这是什么意思?
begin
Append ;
FieldByName('123').AsString :=Edt1.Text ;
Post ;
end;
Showmessage('数据提交成功');
edt1.Text :='';
edt1.SetFocus;
tbl1是Tadotable组件
123字段是char字符型,长度30
编译产生错误信息roject1.exe raised exception class EVariantTypeCastError with message ' Could not convert varant of type(NULL) into type (String)'.Process stopped.
这是什么意思?