Invalid variant type conversion 出錯信息。。會出现這种情形? 原代码如下: CP_Name.Text:=Comman.UsernpQ['Company_Name']; // 可以显示
NP_Name.Text:=Comman.UsernpQ['Company_Admi_Name']; // ok
EP_com_tell.Text:=Comman.UsernpQ['Company_tell']; // ok
EP_Tell.Text:=Comman.UsernpQ['person_tell']; // ok
Ep_QQ.Text:=Comman.UsernpQ['person_QQ']; // ok
EP_Email.Text:=Comman.UsernpQ['Company_Email']; //系統指出是這裡的問题
EP_Fax.Text:=Comman.UsernpQ['company_fax']; //不显示了
Ep_addr.Text:=Comman.UsernpQ['Company_Add']; //不显示了。
Memo1.Text:=Comman.UsernpQ['Memo']; // 不显示了。 前面出問题的地方我用的是Edit組件.最後一個是用 Memo1. 我的数據庫前字段都是用文本。最一個才是备注。。(Access) Invalid variant type conversion 這是出錯信息???請問我要怎麽做才对能?
NP_Name.Text:=Comman.UsernpQ['Company_Admi_Name']; // ok
EP_com_tell.Text:=Comman.UsernpQ['Company_tell']; // ok
EP_Tell.Text:=Comman.UsernpQ['person_tell']; // ok
Ep_QQ.Text:=Comman.UsernpQ['person_QQ']; // ok
EP_Email.Text:=Comman.UsernpQ['Company_Email']; //系統指出是這裡的問题
EP_Fax.Text:=Comman.UsernpQ['company_fax']; //不显示了
Ep_addr.Text:=Comman.UsernpQ['Company_Add']; //不显示了。
Memo1.Text:=Comman.UsernpQ['Memo']; // 不显示了。 前面出問题的地方我用的是Edit組件.最後一個是用 Memo1. 我的数據庫前字段都是用文本。最一個才是备注。。(Access) Invalid variant type conversion 這是出錯信息???請問我要怎麽做才对能?
Comman.FieldByName('Company_Name').asstring;
......