?? form2.frm
字號(hào):
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 3930
ClientLeft = 60
ClientTop = 345
ClientWidth = 7095
LinkTopic = "Form2"
ScaleHeight = 3930
ScaleWidth = 7095
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog CommonDialog1
Left = 360
Top = 2880
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox Text4
Height = 270
Left = 3840
TabIndex = 10
Top = 2880
Width = 975
End
Begin VB.TextBox Text2
Height = 270
Left = 3840
TabIndex = 6
Top = 2400
Width = 975
End
Begin VB.TextBox Text3
Height = 270
Left = 3840
TabIndex = 5
Tag = "3"
Top = 1800
Width = 975
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 2880
TabIndex = 0
TabStop = 0 'False
Top = 3360
Width = 1335
End
Begin VB.TextBox Text1
Height = 270
Left = 3840
TabIndex = 4
Tag = "1"
Top = 1200
Width = 975
End
Begin VB.Image Image1
Height = 930
Index = 1
Left = 5640
Stretch = -1 'True
Top = 120
Width = 975
End
Begin VB.Image Image1
Height = 930
Index = 0
Left = 0
Stretch = -1 'True
Top = 0
Width = 975
End
Begin VB.Label Label5
Caption = "輸出結(jié)果文件名:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1800
TabIndex = 9
Top = 2760
Width = 1815
End
Begin VB.Label Label3
Caption = " 原始數(shù)據(jù)文件名:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 1
Top = 2280
Width = 1935
End
Begin VB.Label Label4
Caption = "新的中央子午線經(jīng)度:"
Height = 375
Index = 1
Left = 1680
TabIndex = 2
Top = 1680
Width = 1815
End
Begin VB.Label Label4
Caption = "Label4"
Height = 15
Index = 0
Left = 600
TabIndex = 8
Top = 1200
Width = 495
End
Begin VB.Label Label2
Caption = "按 TAB 鍵可實(shí)現(xiàn)輸入值的轉(zhuǎn)換"
Height = 375
Left = 2040
TabIndex = 7
Top = 360
Width = 2535
End
Begin VB.Label Label1
Caption = "原來(lái)中央子午線經(jīng)度:"
Height = 375
Left = 1680
TabIndex = 3
Top = 1200
Width = 2055
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x1 As Double, y1 As Double, x2 As Double, y2 As Double, w11 As Double, w21 As Double
Dim ss3 As String, zz(1000) As String
Dim i As Integer, j As Integer
Dim s1 As String, s2, s3 As String, s As String
Dim dh(1000) As String * 6
Dim x(1000) As Double, y(1000) As Double, xx(1000) As Double, yy(1000) As Double, z(1000) As Single
lold0 = Val(Text1.Text)
lnew0 = Val(Text3.Text)
Call deg(lold0)
lold0 = lold0 * 3.14159265 / 180#
Call deg(lnew0)
lnew0 = lnew0 * 3.14159265 / 180#
file$ = CStr(Text2.Text)
If file$ = "" Then
ss3 = "選擇輸入文件!"
ki = MsgBox(ss3, 0, "輸入文件名")
CommonDialog1.ShowOpen
file$ = CommonDialog1.FileName
End If
If file$ <> "" Then
Open file$ For Input As #1
i = 1
Do While EOF(1) = False
Input #1, dh(i), x(i), y(i), z(i)
i = i + 1
Loop
i = i - 1
End If
For j = 1 To i
y(j) = y(j) - 500000
Next j
For j = 1 To i
Call gaosfa(x(j), y(j), xx(j), yy(j))
Call gaoszh(xx(j), yy(j), x(j), y(j))
Next j
Close #1
file$ = CStr(Text4.Text)
If file$ = "" Then
ss3 = "選擇輸出文件!"
ki = MsgBox(ss3, 0, "運(yùn)行順利")
CommonDialog1.ShowOpen
file$ = CommonDialog1.FileName
End If
For j = 1 To i
y(j) = y(j) + 500000
Next j
Open file$ For Output As #2
For j = 1 To i
s1 = CStr(Format(x(j), "######0.000"))
s2 = CStr(Format(y(j), "######0.000"))
s3 = CStr(Format(z(j), "######0.000"))
s = dh(j) & "," & s1 & "," & s2 & "," & s3
Print #2, s
Next j
Close #2
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -