企友3e财务软件教程 电子帐套中遇到Could not convert variant of type (Null) into (Double)需要怎么处理

Delphi报错 :could not convert variant of type (NULL) into type (OleStr)
[问题点数:20分,无满意结帖,结帖人u]
Delphi报错 :could not convert variant of type (NULL) into type (OleStr)
[问题点数:20分,无满意结帖,结帖人u]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。could not convert variant of type (NULL) into type (String)_百度知道
could not convert variant of type (NULL) into type (String)
finally form4.create(nil);try form4.ShowModal: TObject).pescoreluruExecute(S应该就是这里出错了 该如何修改呢;endprocedure TForm2; end:=tform4.Fbegin form4
提问者采纳
误提示:=tform4,有一个variant类型变量值为空(NULL)被转换为字符串类型(string)如果这里出错的话就在;hello world' 请将nil用一个字符串代替(即需要窗口标题)如form4.create(nil).create('):form4:=tform4
提问者评价
其他类似问题
为您推荐:
variant的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁could not convert variant of type (NULL) into type (String)这是怎么回事_百度知道
could not convert variant of type (NULL) into type (String)这是怎么回事
我有更好的答案
有一个variant类型变量值为空(NULL)被转换为字符串类型(string)
其他类似问题
为您推荐:
variant的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁【delphi数据库问题】Could not convert variant of type (Null) into type (string)我用delphi7 ado访问数据库,连接Access,运行时要求输入用户名和密码(我之前也没设置啊),输入完后出错:Could not convert variant of type (Null) into type (string)请问怎么回事?这与我的操作系统有关吗?1.不是这个原因,只是把登录窗口去掉了,直接出现错误了2.应该没有吧,我就添加了ADOConnection1,ADOTable1,DataSource1.没有任何赋值,是运行时弹出错误的.有人说是delphi的ado组件和系统的ado不兼容,
修改个属性ADOConnection1.LoginPrompt := F不知道你是用什么方式传递的数据可能是你插入数据的时候有非空字段没有赋值,好好检查下对应的字段数据Could not convert variant of type (Null) into type (string) 这个提示已经说了:不能将空值转换成String类型,你执行的肯定是修改或插入操作,什么系统ado,Delphi 的ado,都是同一个东西,哪来的不兼容的道理,只有说Delphi对ADO的封装性的问题,但你这个错误很明显,肯定是程序有纰漏
为您推荐:
其他类似问题
扫描下载二维码delphi程序报错 could not convert variant of type (string) into type (double)_百度知道
delphi程序报错 could not convert variant of type (string) into type (double)
如果 Variant 的值为 NULL 或空串,显然不能转换为 Double ,赋值语句左边类型是 Double ,右边类型是存储的 string 的 Variant ,需要在赋值之前进行验证。
其他类似问题
为您推荐:
variant的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 企友3e财务软件教程 的文章

 

随机推荐