¡@¼ÊºÙ: ÀY¹³¬O§Ú·P¿³½ìªº¤k¥Í ¡@ÀY»Î: µ{¦¡³]p¥®¥®¥Í
¤p¾Ç¥Í
- ©«¤l
- 8
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- new taipei city
- µù¥U®É¶¡
- 2010-12-25
- ³Ì«áµn¿ý
- 2012-4-16
|
³á~¥Î¶Ã¼Æ¬O¼ÒÀÀ³ø»ù¦øªA¾¹(DDE Server)¡A¦]¬°§Úªº¼Æ¾Ú¬O¨C¬í5~10Ó¤@ª½±µ¦¬¡A©Ò¥H§Ún¨C¤@¤ÀÄÁ(©Î¨C5¤ÀÄÁ)pºâ³o¤@¤ÀÄÁ¤ºªº³Ì¤jȤγ̤pÈ¡C¤U¦C¬O§Ú¼gªº¥¼§¹¦¨µ{¦¡½X¡A°Ñ¦Ò¬Ý¬Ý¡C
Public Class Form1
Dim arr(200000) As String
Dim advisecount As Integer
Dim startindex As Integer
Dim stopindex As Integer
Dim mark_min As String
Dim max As Integer = 0
Dim min As Integer = 100
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label3.Text = Format(Now, "hh:mm:ss") 'Åã¥Ü²{¦b®É¶¡
Label4.Text = Now.Second + Now.Millisecond / 1000 'Åã¥Ü²{¦b¬í¼Æ+²@¬í
advisecount += 1 '¨Ctick¤@¦¸´N¥[1
Randomize() '¶Ã¼ÆºØ¤lªì©l¤Æ
Dim rand As New Random '«Å§i¶Ã¼Æª«¥órand
Dim x As Integer '©Ó±µrandª«¥ó²£¥Íªº¶Ã¼Æ
x = rand.Next(1, 100)
If x > max Then
max = x
Label5.Text = max
ElseIf x < min Then
min = x
Label6.Text = min
End If
arr(advisecount) = x '©ñ¤Jarr°}¦C¤ñ¸û¤j¤p¥Î
'°O¿ý"§Ç¸¹"¡A"®É¶¡"¡A"¶Ã¼Æ"
TextBox1.Text &= Format(Now, "hh:mm:ss") & " @ " & Format(advisecount, "000000") & " => " & arr(advisecount) & vbNewLine
TextBox1.SelectionStart = TextBox1.TextLength '³]©w´¡¤JÂI
TextBox1.ScrollToCaret() '±N±²¶b±²¦Ü³Ì©³
If TextBox1.TextLength > 10000 Then '¾A®É²MªÅ¥H§Kµ{¦¡t¸ü¹L¤j
TextBox1.Text = ""
End If
If Now.Second Mod 60 = 0 Then '·í¬í¼Æ¬°"00"®É§Y¤U¤@Ó¤ÀÄÁªº¶}©l
mark_min = Now.Minute
startindex = advisecount
Label1.Text = startindex
Label7.Text = mark_min
End If
If Now.Minute > mark_min And Now.Second Mod 60 = 0 Then
stopindex = advisecount
Label2.Text = stopindex
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Enabled = False
End Sub
End Class |
|