Access2003
我的程序很简单,窗体上分别放ADOConnection1,ADOTable1,DBGrid1,DataSource1,用的数据库用BDE的database和tabel时没问题。
我在写程序时将ADOTabel1.Active := true,DBGrid显示正确,这时按F9运行时,会报错:
Project Project1.exe raised exceptiong class EVariantTypeCastError with message'Could not convert of type(Nnll) into type(string)'.Process stopped.Use Step or run to continue.
继续按F9又可以运行程序。而且这个程序用exe单独运行不会报错。
这个错按字面理解应该是有空字符,但我检查了,没有啊,而且用DATABASE没问题……