社区
语言基础/算法/系统设计
帖子详情
could not convert variant of type(null) into type (string)
babaozhou2000
2006-06-05 03:43:54
各位大侠,我的程序中一直出现could not convert variant of type(null) into type (string),按单步运行可以运行成功。请问两个问题:1这个错误如何解决,2 这种情况下用installshield打包受影响吗?
...全文
234
2
打赏
收藏
could not convert variant of type(null) into type (string)
各位大侠,我的程序中一直出现could not convert variant of type(null) into type (string),按单步运行可以运行成功。请问两个问题:1这个错误如何解决,2 这种情况下用installshield打包受影响吗?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
madyak
2006-06-06
打赏
举报
回复
用强制转换.AsString或VarToString
halfdream
2006-06-06
打赏
举报
回复
1,你程序中读数据库记录时,应该抓一下异常.
你那数据库里用的串数据字段类型是允许有NULL值的,这种值是无法转换成DELPHI的STRING型.
所以在处理时候要抓异常.
2,这同你制作安装程序无关.
解决 'Could not
convert
variant
of
type
(
NULL
) into
type
(
String
)
写存储过程中有不允许为空的字段,在客户端转化取数时显示 Could not
convert
variant
of
type
(
NULL
) into
type
(
String
) 可以在存储过程中使用is
null
(查询字段,默认值) as 字段名 转载于:https://www.cnblogs.com/Thenext/p/9699281.html...
解决 'Could not
convert
variant
of
type
(
NULL
) into
type
(
String
)'
使用Delphi6的朋友开发数据库的时候可能遇到下面的情况:使用TADOTable打开表的时候当表为空时出现文章标题的错误信息很是烦人。当表有数据就不会出现这个错误了,经过多方磨难终于找到解决方法:(delphi想说爱你不容易,最近找到很多Bug)解决方法:1、在Object TreeView中找到你的数据连接然找到你的TAdoTable选项2、找到Fields项,点击鼠标右键
RM6.5_XE5 异常 Could not
convert
variant
of
type
(Unicode
String
) into
type
(Double)
RM_Class Could not
convert
variant
of
type
(Unicode
String
) into
type
(Double) varU
String
Delphi开发技巧: 修复XML数据绑定错误: “Could not
convert
variant
of
type
(
Null
) into
type
…”!
QuickTip:Fixing“Couldnot
convert
variant
of
type
(
Null
)into
type
…” IoftenusetheXMLDataBindingwizardinDelphi.However,itdoesn’tseemtohavebeengivenalotofattentionfromBorland/I...
程序报错 could not
convert
variant
of
type
(
string
) into
type
(double)
程序可以运行,功能是把excel中的数据导入到服务器sqlser,为什么会报错无法转换成double格式? 我在sqlser中的数据格式试过char,vchar,nvchar等等,都是报这个错,程序中并没有转换格式啊。 procedure TForm1.Button1Click(Sender: TObject); var ExcelApp, WorkBook,ExcelRowCount:
Variant
; var i:integer; begin try ExcelApp:=CreateOleObject(
语言基础/算法/系统设计
16,749
社区成员
33,245
社区内容
发帖
与我相关
我的任务
语言基础/算法/系统设计
Delphi 语言基础/算法/系统设计
复制链接
扫一扫
分享
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章