Dim button1 As String
Dim button2 As String
Dim cmts接受电平 As String
Dim cmts接受信噪比 As String
Dim cm上行电平 As String
Dim cm下行电平 As Double
Dim cm下行信噪比 As String
Dim cm状态 As String
Dim crcerror指标 As Integer
Dim hit指标 As Integer
Dim insertion指标 As Integer
Dim miss指标 As Integer
Dim p_adj指标 As Integer
Dim time指标 As String
Dim 综合flap指标 As Integer
Dim postData As String
Dim myHttpWebRequest As HttpWebRequest
Dim requestStream As Stream
Dim postBytes As Byte()
Dim myHttpWebResponse As HttpWebResponse
Dim receiveStream As Stream
Dim sr1 As StreamReader
Dim path1 As String = "c:\temp\1.txt"
Dim linex As String
Dim sw As StreamWriter
Dim i1 As Int32
Dim nowtime As DateTime
Dim sd As StreamReader
Dim ss As String
Dim re1 As Regex
Dim m As Match
Dim mc As MatchCollection
Dim sd2 As StreamReader
Dim j As Int16
Dim k As Int64
Dim linecontent As String
Dim m2 As Match
Dim re3 As Regex
Dim m3 As Match
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 开始.Click
Try
Do While 1 = 1
,这里加System.Windows.Forms.Application.DoEvents()?——没用啊
,主要循环体
,包括post,getrequeststream
, 提取返回信息
,保存信息到access2000数据库
,
If button2 = 1 Then
Exit Do
button2 = 0
End If
Loop
Catch ex As Exception
MsgBox(ex.ToString)
Console.WriteLine(ex.ToString)
End Try
End Sub
Private Sub 停止_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 停止.Click
button2 = 1
End Sub