-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormMsg.vb
47 lines (44 loc) · 1.2 KB
/
FormMsg.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Private Sub ComACK_Click()
Dim Ty As String, AX As Integer, AY As Integer
Dim S As String, Wh As Integer
If SONK = True Then
FrameErr.Visible = True
Exit Sub
End If
Wh = ListAlm.ListIndex
If Wh >= 0 And Wh <= ListAlm.ListCount - 1 Then
S = ListAdd.List(Wh)
Ty = Left(S, 1)
S = Mid(S, 2): AX = Val(S)
S = Mid(S, 4): AY = Val(S)
Call FormMain.AckOne(Ty, AX, AY)
Call ListAlmReport
End If
If Wh >= 0 And Wh <= ListAlm.ListCount - 1 Then
ListAlm.ListIndex = Wh
End If
End Sub
Private Sub ComACKPage_Click()
Dim Ty As String, AX As Integer, AY As Integer
Dim S As String
Dim i As Integer
If SONK = True Then
FrameErr.Visible = True
Exit Sub
End If
For i = 0 To ListAlm.ListCount - 1
S = ListAdd.List(i)
Ty = Left(S, 1)
S = Mid(S, 2): AX = Val(S)
S = Mid(S, 4): AY = Val(S)
Call FormMain.AckOne(Ty, AX, AY)
Next i
Call ListAlmReport
End Sub
Private Sub ComSilence_Click()
Call FormMain.MnuUserSilence_Click
FrameErr.Visible = False
End Sub
Private Sub Timer1_Timer()
ImageSONK.Visible = SONK
End Sub