从字符串"GrN-0002"的转换输入"Double"无效. [英] Conversion from string "GrN-0002" to type 'Double' is not valid.

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

问题描述

我遇到了这个问题,我相信您会通过快照了解我要做什么.

hi guys i am having this problem i am sure youll understand with the snap shot what am i trying to do.

推荐答案

在项目属性中启用Option Strict,或至少通过添加"optionstrict on"在文件的顶部.通过了解数据类型来修复所有编译错误.应用必要的转换并验证它们在所有情况下都将成功完成,并且 表现如预期.单独处理每种情况,不仅要接受IDE建议的转换.

Enable Option Strict in the project's properties, or at least by adding "option strict on" at the top of the file. Fix all compile errors by becoming aware of data types. Apply necessary conversions and verify they will succeed in all cases and behave as intended. Handle each case individually, not only by accepting the conversions suggested by the IDE.

删除对VB6仿真层的调用(例如Format函数属于它),因为不再需要它.

Remove calls to the VB6 emulation layer (e.g. the Format function belongs to it) as it is not required anymore.

解决此问题后,问题可能已经消失.如果没有,请随时再次报告.

After fixing this, the problem might already be gone. If not, feel free to report back again.


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

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