📄 坐标正算.ebf
字号:
BackStyle = 1
BorderStyle = 0
Caption = "L(d.mmssss)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.Label Label2
Height = 255
Left = 360
TabIndex = 9
Top = 720
Width = 1095
_cx = 1931
_cy = 450
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "B(d.mmssss)="
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.Label Label1
Height = 375
Left = 360
TabIndex = 8
Top = 240
Width = 975
_cx = 1720
_cy = 661
AutoSize = 0 'False
BackColor = -2147483643
BackStyle = 1
BorderStyle = 0
Caption = "中央子午线(d.mmssss)"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
Begin VBCE.TextBox Text3
Height = 375
Left = 1560
TabIndex = 4
Top = 1200
Width = 1575
_cx = 2778
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.TextBox Text2
Height = 375
Left = 1560
TabIndex = 3
Top = 720
Width = 1575
_cx = 2778
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.TextBox Text1
Height = 375
Left = 1560
TabIndex = 2
Top = 240
Width = 1575
_cx = 2778
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
End
Begin VBCE.CommandButton Command2
Height = 375
Left = 1440
TabIndex = 15
Top = 1800
Width = 855
_cx = 1508
_cy = 661
BackColor = 12632256
Caption = "返 回"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
Begin VBCE.CommandButton Command1
Height = 375
Left = 2640
TabIndex = 14
Top = 1800
Width = 855
_cx = 1508
_cy = 661
BackColor = 12632256
Caption = "计 算"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If IsNumeric(Text1) = False Then Text1.Text = "": Text1.SetFocus: Exit Sub
If IsNumeric(Text2) = False Then Text2.Text = "": Text2.SetFocus: Exit Sub
If IsNumeric(Text3) = False Then Text3.Text = "": Text3.SetFocus: Exit Sub
If CDbl(Text1.Text) >= 180 Then MsgBox "中央子午线不能大于180度", vbExclamation, "坐标正算": Text1.Text = "": Text1.SetFocus: Exit Sub
If CDbl(Text2.Text) >= 180 Then MsgBox "纬度不能大于180度", vbExclamation, "坐标正算": Text2.Text = "": Text2.SetFocus: Exit Sub
If CDbl(Text3.Text) >= 180 Then MsgBox "经度不能大于180度", vbExclamation, "坐标正算": Text3.Text = "": Text3.SetFocus: Exit Sub
deg CDbl(Text1.Text)
lo = aw
deg CDbl(Text2.Text)
b = aw
deg CDbl(Text3.Text)
l = aw
zuobiaozhengsuan
dms (r)
Text4.Text = CStr(xx2)
Text5.Text = CStr(yy2)
Text6.Text = bstr
End Sub
Private Sub Command2_Click()
Form1.Show
End Sub
Private Sub Form_OKClick()
Form1.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -