Im int dizesinden dönüştürmek olamaz ve sonra ben 4.Web sitesinden numarayı kazımak için regex kullanarak
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)
tarafından Bundan sonra bir hata var olduğunu mypltiply istiyorum: An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
. Nasıl yapılacağını bilmiyorum. Microsoft Visual Studio, VB .net kullanıyorum. kwota
değişkeni, bir dize olarak 15.2
içerir.
bir int (stringToInteger) oluşturuyorsunuz ve onu textbox1.text dosyasına atayarak (bir dizedir). – Sam
Sorun şu ki, ben metin kutusuna atamayı silsem bile görebildiğim – audiophonic
Eh, '15.2' kesinlikle' int' değil, 'double', 'float' veya decimal' dir. –