?? 放線3.frm
字號:
VERSION 5.00
Begin VB.Form Form3
Caption = "支導線輸入"
ClientHeight = 3765
ClientLeft = 6510
ClientTop = 4065
ClientWidth = 5310
Icon = "放線3.frx":0000
LinkTopic = "Form3"
ScaleHeight = 3765
ScaleWidth = 5310
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
HideSelection = 0 'False
Left = 2280
TabIndex = 2
Text = "90"
Top = 1680
Width = 2175
End
Begin VB.CommandButton Command3
Caption = "放棄存盤"
BeginProperty Font
Name = "楷體_GB2312"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3840
TabIndex = 6
Top = 3000
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "存盤繼續"
BeginProperty Font
Name = "楷體_GB2312"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 4
Top = 3000
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "存盤返回"
BeginProperty Font
Name = "楷體_GB2312"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2040
TabIndex = 5
Top = 3000
Width = 1335
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2280
TabIndex = 3
Top = 2280
Width = 2175
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2280
TabIndex = 1
Top = 1080
Width = 2175
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 0
Top = 480
Width = 1575
End
Begin VB.Label Label5
Caption = "垂直角:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 11
Top = 1680
Width = 975
End
Begin VB.Label Label4
Caption = "支導線輸入"
BeginProperty Font
Name = "宋體"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1695
Left = 240
TabIndex = 10
Top = 480
Width = 495
End
Begin VB.Line Line4
X1 = 0
X2 = 5280
Y1 = 3720
Y2 = 3720
End
Begin VB.Line Line3
X1 = 5280
X2 = 5280
Y1 = 0
Y2 = 3720
End
Begin VB.Line Line2
X1 = 0
X2 = 5280
Y1 = 0
Y2 = 0
End
Begin VB.Line Line1
X1 = 0
X2 = 0
Y1 = 3720
Y2 = 0
End
Begin VB.Label Label3
Caption = "距離:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1200
TabIndex = 9
Top = 2280
Width = 735
End
Begin VB.Label Label2
Caption = "水平角:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 8
Top = 1080
Width = 975
End
Begin VB.Label Label1
Caption = "支導線點號:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 7
Top = 480
Width = 1455
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
WZdh = Text1.Text: Hr = Text2.Text: Hd = Text3.Text: Vr = Text4.Text
If WZdh = "" Or Hr = "" Or Hd = "" Or Vr = "" Then
MsgBox "觀測數據不能輸入空值,請重新輸入!", 0, "支導線輸入"
Else
If Val(Hr) > 180 Then HRL = Trim(Str((Val(Hr) - 180)))
If Val(Hr) <= 180 Then HRL = Trim(Str((Val(Hr) + 180)))
Print #1, "#2,"; WZdh; ",0,"; Hr; ","; Vr; ","; Hd; ","; _
HRL; ","; Trim(Str(Xstojd(360 - Jdtoxs(Val(Vr))))); ","; Hd; ",180;"
Close #1
Me.Hide
Unload Me
Form1.Show
End If
End Sub
Private Sub Command2_Click()
WZdh = Text1.Text: Hr = Text2.Text: Hd = Text3.Text: Vr = Text4.Text
If WZdh = "" Or Hr = "" Or Hd = "" Or Vr = "" Then
MsgBox "觀測數據不能輸入空值,請重新輸入!", 0, "支導線輸入"
Else
If Val(Hr) > 180 Then HRL = Trim(Str((Val(Hr) - 180)))
If Val(Hr) <= 180 Then HRL = Trim(Str((Val(Hr) + 180)))
Print #1, "#2,"; WZdh; ",0,"; Hr; ","; Vr; ","; Hd; ","; _
HRL; ","; Trim(Str(Xstojd(360 - Jdtoxs(Val(Vr))))); ","; Hd; ",180;"
Text1.Text = "": Text2.Text = "": Text3.Text = "": Text4.Text = "90"
End If
Text1.TabIndex = 0
End Sub
Private Sub Command3_Click()
Close #1
Me.Hide
Unload Me
Form1.Show
End Sub
Private Sub Form_Load()
Form1.Hide
Dim WZdh, Hr, Vr, Hd, HRL As String
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
KeyAscii = 0
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
KeyAscii = 0
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Cancel = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -