我不斷收到此錯誤,我盡我所能,但它仍然說「值類型的字符串()不能轉換爲字符串。」類型字符串()的值不能轉換爲字符串
下面是代碼:
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
End Sub
Sub New()
InitializeComponent()
RAN = New Random
WB = New WebClient
End Sub
Private Const IDNum As String = "https://example.com/Data.php"
Private WB As WebClient
Private RAN As Random
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim Account As String() = WB.DownloadString(IDNum).Split(Environment.NewLine)
AccSplit(Account(RAN.Next(1, Account.Length)))
End Sub
Private Sub AccSplit(ByVal Account As String)
TextBox2.Text = Account.Split()
End Sub
我有一個很大的text.php,當我點擊一個按鈕時,它不會逐行顯示它。它顯示了整個文本。這就是爲什麼我想看看分裂是否會奏效。 –