📄 xujunfang.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 8610
ClientLeft = 60
ClientTop = 450
ClientWidth = 10785
LinkTopic = "Form2"
ScaleHeight = 8610
ScaleWidth = 10785
StartUpPosition = 3 '窗口缺省
Visible = 0 'False
Begin VB.PictureBox Picture1
Height = 3375
Left = 480
ScaleHeight = 3315
ScaleWidth = 3915
TabIndex = 24
Top = 4680
Width = 3975
Begin VB.Shape Shape1
Height = 135
Index = 0
Left = 600
Top = 720
Width = 135
End
Begin VB.Shape Shape1
Height = 135
Index = 1
Left = 2760
Top = 360
Width = 135
End
Begin VB.Shape Shape1
Height = 135
Index = 2
Left = 3480
Top = 2160
Width = 135
End
Begin VB.Shape Shape1
Height = 135
Index = 3
Left = 1920
Top = 3000
Width = 135
End
Begin VB.Shape Shape1
Height = 135
Index = 4
Left = 240
Top = 2400
Width = 135
End
Begin VB.Shape Shape2
Height = 135
Left = 1440
Top = 1800
Width = 135
End
Begin VB.Shape Shape3
Height = 135
Left = 2400
Top = 1320
Width = 135
End
Begin VB.Line Line1
X1 = 720
X2 = 2400
Y1 = 840
Y2 = 1320
End
Begin VB.Line Line2
X1 = 2760
X2 = 2520
Y1 = 480
Y2 = 1320
End
Begin VB.Line Line3
X1 = 3480
X2 = 2520
Y1 = 2160
Y2 = 1440
End
Begin VB.Line Line4
X1 = 2400
X2 = 2040
Y1 = 1440
Y2 = 3000
End
Begin VB.Line Line5
X1 = 1560
X2 = 2400
Y1 = 1800
Y2 = 1440
End
Begin VB.Line Line6
X1 = 720
X2 = 1440
Y1 = 840
Y2 = 1800
End
Begin VB.Line Line7
X1 = 360
X2 = 1440
Y1 = 2400
Y2 = 1920
End
Begin VB.Line Line8
X1 = 1920
X2 = 1560
Y1 = 3000
Y2 = 1920
End
Begin VB.Label Label5
Caption = "B"
Height = 375
Left = 3000
TabIndex = 31
Top = 240
Width = 375
End
Begin VB.Label Label6
Caption = "C"
Height = 255
Left = 3360
TabIndex = 30
Top = 2400
Width = 255
End
Begin VB.Label Label7
Caption = "D"
Height = 375
Left = 2160
TabIndex = 29
Top = 2760
Width = 255
End
Begin VB.Label Label8
Caption = "A"
Height = 255
Left = 240
TabIndex = 28
Top = 840
Width = 255
End
Begin VB.Label Label9
Caption = "P1"
Height = 255
Left = 2280
TabIndex = 27
Top = 960
Width = 255
End
Begin VB.Label Label10
Caption = "P2"
Height = 255
Left = 960
TabIndex = 26
Top = 1680
Width = 255
End
Begin VB.Label Label11
Caption = "E"
Height = 375
Left = 240
TabIndex = 25
Top = 2640
Width = 375
End
End
Begin VB.CommandButton Command2
Caption = "赋值"
Height = 495
Left = 7680
TabIndex = 23
Top = 7560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "转换弧度"
Height = 495
Left = 8520
TabIndex = 19
Top = 2400
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 8
Left = 6600
TabIndex = 18
Text = "261.25361"
Top = 6360
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 7
Left = 6600
TabIndex = 17
Text = "137.25471"
Top = 5640
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 6
Left = 6600
TabIndex = 16
Text = "77.4053"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 5
Left = 6600
TabIndex = 15
Text = "0.0000"
Top = 4200
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 4
Left = 6600
TabIndex = 14
Text = "321.25432"
Top = 3480
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 3
Left = 6600
TabIndex = 13
Text = "221.4353"
Top = 2760
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 2
Left = 6600
TabIndex = 12
Text = "168.22296"
Top = 2040
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 1
Left = 6600
TabIndex = 11
Text = "78.01146"
Top = 1320
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Index = 0
Left = 6600
TabIndex = 10
Text = "0.0000"
Top = 600
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Index = 4
Left = 3120
TabIndex = 9
Text = "45581.961"
Top = 3480
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Index = 3
Left = 3120
TabIndex = 8
Text = "50109.934"
Top = 2760
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Index = 2
Left = 3120
TabIndex = 7
Text = "51066.877"
Top = 2040
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Index = 1
Left = 3120
TabIndex = 6
Text = "49052.653"
Top = 1320
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Index = 0
Left = 3120
TabIndex = 5
Text = "46052.738"
Top = 600
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Index = 4
Left = 360
TabIndex = 4
Text = "59777.542"
Top = 3480
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Index = 3
Left = 360
TabIndex = 3
Text = "59096.596"
Top = 2760
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Index = 2
Left = 360
TabIndex = 2
Text = "62866.005"
Top = 2040
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Index = 1
Left = 360
TabIndex = 1
Text = "63129.560"
Top = 1320
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Index = 0
Left = 360
TabIndex = 0
Text = "62303.538"
Top = 600
Width = 1215
End
Begin VB.Label Label3
Caption = "L"
Height = 375
Left = 6720
TabIndex = 22
Top = 120
Width = 735
End
Begin VB.Label Label2
Caption = "y"
Height = 375
Left = 3120
TabIndex = 21
Top = 120
Width = 1095
End
Begin VB.Label Label1
Caption = "x"
Height = 375
Left = 360
TabIndex = 20
Top = 120
Width = 1095
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim x(0 To 4) As Double
Dim y(0 To 4) As Double
Dim L(0 To 8) As Double
Private Sub Command2_Click()
Dim i As Integer
For i = 0 To 4
x(i) = Text1(i).Text
y(i) = Text2(i).Text
Next i
For i = 0 To 8
L(i) = Text3(i).Text
Next i
Form1.Visible = True
Form1.Command1.Enabled = False
Form1.Command2.Enabled = True
Form2.Visible = False
End Sub
Private Function dfs(jd#) As Double
Dim d, f, s1, h, x As Double
d = Int(jd)
x = (jd - d) * 100
f = Int(x)
s1 = (x - f) * 100
h = (d * 3600 + f * 60 + s1) / 206265
dfs = h
End Function
Private Sub Command1_Click()
Dim A As Double
Dim i As Double
For i = 0 To 8
A = dfs(Text3(i).Text)
Text3(i).Text = A
Next i
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -