最最简单的程序,为什么也有错???
新建一个程序,只有三个控件:adotable、datasource和dbgrid。
adotable的connectionstring、tablename和active属性都已设。
datasource的dataset属性已设为adotable1。
dbgrid的datasource属性已设为datasource1。
运行后出错:debugger exception notification:“project raised exception class EVariantTypeCastError with message‘Could not convert variant of type(Null) into type(String)’”
如果按一下F7,就可以出现运行后的窗口了。。
请问是什么原因啊??如何解决啊??