错误从字符串“11:02:19”转换输入'Double'无效 [英] Error Conversion from string "11:02:19" to type 'Double' is not valid
本文介绍了错误从字符串“11:02:19”转换输入'Double'无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
https://gist.github.com/anonymous/0432fab645166b52eedb [ ^ ]
帮帮我吧等待^^
解决方案
标签上的这种转换将消除错误,但如果它不起作用,您需要发布您的声明,以便我可以准确地看到你是怎么做的。你的概念看起来很错误,你需要重写你的逻辑。
改变这个:
StartTime = DateTime.Now.AddMinutes(lbltime.Text).ToString(HH :mm:ss)。ToString
对此:
StartTime = DateTime.Now.AddMinutes(CDbl( lbltime.Text))的ToString( HH:MM:SS。)的ToString
https://gist.github.com/anonymous/0432fab645166b52eedb[^]
Help me pls i'll wait ^^
解决方案
This conversion on the label will get rid of the error, but if it doesn't work you need to post your declarations so I can see exactly how you are doing things. Your concept looks wrong though, you need to rewrite your logic.
Change this:
StartTime = DateTime.Now.AddMinutes(lbltime.Text).ToString("HH:mm:ss").ToString
To this:
StartTime = DateTime.Now.AddMinutes(CDbl(lbltime.Text)).ToString("HH:mm:ss").ToString
这篇关于错误从字符串“11:02:19”转换输入'Double'无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文