イムをintに文字列から変換カント、その後、私は4私は、ウェブサイトからの数をこすりするために正規表現を使用して
Dim thepage As String = postreqreader.ReadToEnd
Dim r As New System.Text.RegularExpressions.Regex("Views"">\(....)")
Dim matches As MatchCollection = r.Matches(thepage)
Dim kwota As String
For Each itemcode As Match In matches
kwota = itemcode.Groups(1).Value
Next
Dim stringToInteger As Integer = Convert.ToInt32(kwota)
でその後、私はエラー持っていることmypltiplyたい:An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
を。私はそれを作る方法を知らない。私はMicrosoft Visual Studio、VB .NETを使用しています。 kwota
変数には、文字列として15.2
が含まれています。
int(stringToInteger)を作成し、それをtextbox1.text(文字列)に割り当てます。 – Sam
事は、私がテキストボックスに割り当てを削除してもエラーが表示されることです – audiophonic
「15.2」は間違いなく 'int'ではなく、' double'、 'float'または' decimal'です。 –