[英]overload resolution failed because no accessible 'new' accepts this number of arguments
[英]VBNET Overload because no accessible 'int' accepts number arguments
我收到此視覺基本2010錯誤:由於沒有可訪問的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
這是vb.net是嗎?
它應該是:
Integer.Parse(txtqfire.Text)
您還可以使用:
Int32.Parse(txtqfire.Text)
VB.NET中沒有這樣的方法(與c#不同)。
VB.NET轉換為:
Integer.Parse(txtqfire.Text)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.