[英]VBNET Overload because no accessible 'int' accepts number arguments
I'm getting this visual basic 2010 error : Overload resolution failed because no accessible int accepts number arguments. 我收到此视觉基本2010错误:由于没有可访问的int接受数字参数,因此重载解析失败。 Error at line2 'int'
第2行'int'错误
Private Sub cmdadd_Click(sender As System.Object, e As System.EventArgs) Handles cmdadd.Click
Dim i As Integer = Int.Parse(txtqfire.Text)
i += 1
txtqfire.Text = i.ToString()
End Sub
This is vb.net isn't it? 这是vb.net是吗?
It should be: 它应该是:
Integer.Parse(txtqfire.Text)
You can also use: 您还可以使用:
Int32.Parse(txtqfire.Text)
There is no such method in VB.NET (unlike c#). VB.NET中没有这样的方法(与c#不同)。
The VB.NET conversion is: VB.NET转换为:
Integer.Parse(txtqfire.Text)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.