解决 'Could not convert variant of type (NULL) into type (String)'
来源:互联网 发布:十宗罪网络剧演员表 编辑:程序博客网 时间:2024/05/16 19:24
使用Delphi6的朋友开发数据库的时候可能遇到下面的情况:
使用TADOTable打开表的时候当表为空时出现文章标题的错误信息很是烦人。
当表有数据就不会出现这个错误了,经过多方磨难终于找到解决方法:(delphi想说爱你不容易,最近找到很多Bug)
解决方法:
1、在Object TreeView中找到你的数据连接然找到你的TAdoTable选项
2、找到Fields项,点击鼠标右键出现菜单,点击 Add All Fields即可。
有的网友给出答案:
示例代码
if sender.value = null then
text := ''
else
text := sender.value;
我得测试结果是:只要向上面的操作才可能出现该网友的事件,因此写不写代码都好用,期待各位网友的测试结果,敢做项目无时间测试!
- 解决 'Could not convert variant of type (NULL) into type (String)'
- 'Could not convert variant of type (Array Byte) into type (Integer)
- RM6.5_XE5 异常 Could not convert variant of type(UnicodeString) into type(Double)
- could not be set to a 'string' value. You must set this property to a non-null value of type
- 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- 【Hibernate】Could not determine type for: String
- Could not determine type for: String
- Could not determine type for: String
- 解决dev express quantumgrid v6.30使用中出现'Overflow while converting variant of type(Integer) into type(Date)'的错误
- could not create plugin of type
- Could not create task or type of type: junit
- Could not create task or type of type: junit. 错误
- Convert anonymous type into any type
- VARIANT Type
- IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示
- IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示
- Decodes a String into an object of the specified type
- cannot convert value of type 'String!' to expected argument type 'inout String'
- DataGridView控件用法合集(十二)
- 读取/书写Java的XML格式properties文件
- 大数据量下的C#分页
- Delphi之通过ADOX操作access数据库
- java设计模式之Observer(观察者)
- 解决 'Could not convert variant of type (NULL) into type (String)'
- java设计模式之Composite(合成)
- Oracle 游标使用大全(一)
- 在Applet中实现页面的跳转
- DataGridView控件用法合集(四-八)
- #ifdef的用法
- 热烈祝贺逐浪CMS1.0发布
- java设计模式之Command(命令)
- js用FileSystemObject 对象实现文件控制