📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6330
ClientLeft = 60
ClientTop = 345
ClientWidth = 10455
LinkTopic = "Form1"
ScaleHeight = 6330
ScaleWidth = 10455
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame2
BackColor = &H80000004&
Caption = "电磁波测距的归算"
Height = 5415
Left = 5160
TabIndex = 1
Top = 840
Width = 4695
Begin VB.CommandButton Command4
Caption = "退出"
Height = 375
Left = 3000
TabIndex = 20
Top = 4920
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "计算"
Height = 375
Left = 360
TabIndex = 19
Top = 4920
Width = 1215
End
Begin VB.Frame Frame10
BackColor = &H80000004&
Caption = "输出归算后的基线长度"
Height = 855
Left = 240
TabIndex = 18
Top = 3840
Width = 3975
Begin VB.TextBox Text13
Height = 375
Left = 960
TabIndex = 39
Text = "Text13"
Top = 360
Width = 2295
End
Begin VB.Label Label13
BackColor = &H80000004&
Caption = "d="
Height = 255
Left = 240
TabIndex = 33
Top = 480
Width = 615
End
End
Begin VB.Frame Frame9
BackColor = &H80000004&
Caption = "输入长度"
Height = 735
Left = 240
TabIndex = 17
Top = 3000
Width = 3975
Begin VB.TextBox Text12
Height = 270
Left = 960
TabIndex = 38
Text = "Text12"
Top = 360
Width = 2295
End
Begin VB.Label Label12
BackColor = &H80000004&
Caption = "D="
Height = 255
Left = 240
TabIndex = 32
Top = 360
Width = 615
End
End
Begin VB.Frame Frame8
BackColor = &H80000004&
Caption = "输入两点的半径"
Height = 1095
Left = 240
TabIndex = 16
Top = 1680
Width = 3975
Begin VB.TextBox Text11
Height = 270
Left = 1080
TabIndex = 37
Text = "Text11"
Top = 720
Width = 2175
End
Begin VB.TextBox Text10
Height = 270
Left = 1080
TabIndex = 36
Text = "Text10"
Top = 240
Width = 2175
End
Begin VB.Label Label11
BackColor = &H80000004&
Caption = "R2="
Height = 255
Left = 240
TabIndex = 31
Top = 720
Width = 615
End
Begin VB.Label Label10
BackColor = &H80000004&
Caption = "R1="
Height = 255
Left = 240
TabIndex = 30
Top = 240
Width = 615
End
End
Begin VB.Frame Frame7
BackColor = &H80000004&
Caption = "输入两点的高程"
Height = 1095
Left = 240
TabIndex = 15
Top = 360
Width = 3975
Begin VB.TextBox Text9
Height = 270
Left = 1080
TabIndex = 35
Text = "Text9"
Top = 600
Width = 2175
End
Begin VB.TextBox Text8
Height = 270
Left = 1080
TabIndex = 34
Text = "Text8"
Top = 240
Width = 2175
End
Begin VB.Label Label9
BackColor = &H80000004&
Caption = "H2="
Height = 255
Left = 360
TabIndex = 29
Top = 600
Width = 495
End
Begin VB.Label Label8
BackColor = &H80000004&
Caption = "H1="
Height = 255
Left = 360
TabIndex = 28
Top = 240
Width = 495
End
End
End
Begin VB.Frame Frame1
BackColor = &H80000004&
Caption = "基线尺量距的归算"
Height = 5415
Left = 240
TabIndex = 0
Top = 840
Width = 3855
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 2520
TabIndex = 14
Top = 4920
Width = 975
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 375
Left = 240
TabIndex = 13
Top = 4920
Width = 975
End
Begin VB.Frame Frame6
BackColor = &H80000004&
Caption = "输出归算后的基线长度"
Height = 735
Left = 240
TabIndex = 7
Top = 4080
Width = 3255
Begin VB.TextBox Text7
Height = 375
Left = 480
TabIndex = 27
Text = "Text7"
Top = 240
Width = 2295
End
Begin VB.Label Label7
BackColor = &H80000004&
Caption = "s="
Height = 255
Left = 240
TabIndex = 12
Top = 360
Width = 615
End
End
Begin VB.Frame Frame5
BackColor = &H80000004&
Caption = "输入长度和半径"
Height = 975
Left = 240
TabIndex = 6
Top = 3000
Width = 3255
Begin VB.TextBox Text6
Height = 270
Left = 480
TabIndex = 26
Text = "Text6"
Top = 600
Width = 2295
End
Begin VB.TextBox Text5
Height = 270
Left = 480
TabIndex = 25
Text = "Text5"
Top = 240
Width = 2295
End
Begin VB.Label Label6
BackColor = &H80000004&
Caption = "R="
Height = 255
Left = 120
TabIndex = 11
Top = 600
Width = 615
End
Begin VB.Label Label5
BackColor = &H80000004&
Caption = "s0="
Height = 255
Left = 120
TabIndex = 10
Top = 240
Width = 495
End
End
Begin VB.Frame Frame4
BackColor = &H80000004&
Caption = "输入两点垂线偏差在基线上分量的"
Height = 1335
Left = 240
TabIndex = 5
Top = 1560
Width = 3255
Begin VB.TextBox Text4
Height = 270
Left = 600
TabIndex = 24
Text = "Text4"
Top = 840
Width = 2295
End
Begin VB.TextBox Text3
Height = 270
Left = 600
TabIndex = 23
Text = "Text3"
Top = 240
Width = 2295
End
Begin VB.Label Label4
BackColor = &H80000004&
Caption = "u2="
Height = 255
Left = 240
TabIndex = 9
Top = 840
Width = 495
End
Begin VB.Label Label3
BackColor = &H80000004&
Caption = "u1="
Height = 255
Left = 240
TabIndex = 8
Top = 240
Width = 495
End
End
Begin VB.Frame Frame3
BackColor = &H80000000&
Caption = "输入两点的高程"
Height = 1095
Left = 240
TabIndex = 2
Top = 360
Width = 3255
Begin VB.TextBox Text2
Height = 270
Left = 480
TabIndex = 22
Text = "Text2"
Top = 600
Width = 2295
End
Begin VB.TextBox Text1
Height = 270
Left = 480
TabIndex = 21
Text = "Text1"
Top = 240
Width = 2295
End
Begin VB.Label Label2
BackColor = &H80000004&
Caption = "H2="
Height = 255
Left = 120
TabIndex = 4
Top = 600
Width = 615
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "H1="
Height = 255
Left = 120
TabIndex = 3
Top = 240
Width = 615
End
End
End
Begin VB.Label Label14
Caption = "将地面观测值的长度归算到椭球面"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2520
TabIndex = 40
Top = 120
Width = 5055
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim h1, h2, u1, u2, s0, r, s As Double
h1 = Val(Text1.Text)
h2 = Val(Text2.Text)
u1 = Val(Text3.Text)
h1 = Val(Text4.Text)
s0 = Val(Text5.Text)
r = Val(Text6.Text) * 1000
s = s0 * (1 + (h1 + h2) / 2 / r) ^ (0 - 1) + (u1 + u2) * (h2 - h1) / (2 * 206264.806247096)
Text7.Text = s
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Dim h11, h22, r1, d0, d As Double
h11 = Val(Text8.Text)
h22 = Val(Text9.Text)
r1 = Val(Text10.Text) * 1000
d0 = Val(Text12.Text)
d = d0 * Sqr((1 - ((h22 - h11) / d0) ^ 2) / ((1 + h11 / r1) * (1 + h22 / r1)))
Text13.Text = d
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -