从字符串“"转换输入'boolean'无效。 [英] Conversion from string "" to type 'boolean' is not valid.

查看:306
本文介绍了从字符串“"转换输入'boolean'无效。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



错误发生在以下行,

我在vb.net中使用的代码

代码:



Hi All,

The error occurs on the below line,
the code i was used in vb.net
code:

Dim FromID As String=""
If IsNothing(FromID) OrElse String.Empty Then ....





我的错误是:





My error is :

Conversion from string "" to type 'Boolean' is not valid.







Hopefully someone might be able to help. Thanks





我尝试过:



从字符串到类型'Boolean'的转换无效。



What I have tried:

Conversion from string "" to type 'Boolean' is not valid.

推荐答案

尝试:

Try:
If IsNothing(FromID) OrElse String.IsNullOrEmpty(myStringVariableName) Then...


这篇关于从字符串“"转换输入'boolean'无效。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆