⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 坐标文件转换.ebf

📁 可以在pocketpc上进行坐标换带计算以及坐标转换等功能
💻 EBF
📖 第 1 页 / 共 2 页
字号:
      End
   End
   Begin VBCE.Frame Frame5 
      Height          =   2175
      Left            =   240
      TabIndex        =   13
      Top             =   5640
      Width           =   3135
      _cx             =   5530
      _cy             =   3836
      BackColor       =   -2147483643
      BorderStyle     =   1
      Caption         =   "西安坐标转换北京坐标"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      ClipControls    =   -1  'True
      Begin VBCE.CommandButton Command10 
         Height          =   495
         Left            =   480
         TabIndex        =   15
         Top             =   600
         Width           =   1935
         _cx             =   3413
         _cy             =   873
         BackColor       =   12632256
         Caption         =   "打开文件"
         Enabled         =   -1  'True
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Style           =   0
      End
      Begin VBCE.CommandButton Command9 
         Height          =   495
         Left            =   480
         TabIndex        =   14
         Top             =   1320
         Width           =   1935
         _cx             =   3413
         _cy             =   873
         BackColor       =   12632256
         Caption         =   "坐标转换"
         Enabled         =   -1  'True
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Style           =   0
      End
   End
   Begin VBCE.Frame Frame6 
      Height          =   2175
      Left            =   4200
      TabIndex        =   16
      Top             =   5640
      Width           =   3135
      _cx             =   5530
      _cy             =   3836
      BackColor       =   -2147483643
      BorderStyle     =   1
      Caption         =   "北京坐标转换西安坐标"
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   -2147483640
      ClipControls    =   -1  'True
      Begin VBCE.CommandButton Command12 
         Height          =   495
         Left            =   480
         TabIndex        =   18
         Top             =   600
         Width           =   1935
         _cx             =   3413
         _cy             =   873
         BackColor       =   12632256
         Caption         =   "打开文件"
         Enabled         =   -1  'True
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Style           =   0
      End
      Begin VBCE.CommandButton Command11 
         Height          =   495
         Left            =   480
         TabIndex        =   17
         Top             =   1320
         Width           =   1935
         _cx             =   3413
         _cy             =   873
         BackColor       =   12632256
         Caption         =   "坐标转换"
         Enabled         =   -1  'True
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Style           =   0
      End
   End
   Begin VBCE.Label Label1 
      Height          =   375
      Left            =   480
      TabIndex        =   2
      Top             =   120
      Width           =   3015
      _cx             =   5318
      _cy             =   661
      AutoSize        =   0   'False
      BackColor       =   -2147483643
      BackStyle       =   1
      BorderStyle     =   0
      Caption         =   "Label1"
      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
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub Command10_Click()
GetFileToOpen
End Sub

Private Sub Command11_Click()
GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filebjtoxa
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
End Sub

Private Sub Command12_Click()
GetFileToOpen
End Sub
Private Sub Command1_Click()
GetFileToOpen
End Sub

Private Sub Command2_Click()
   GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filenbtoxa
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
 End Sub

Private Sub Command3_Click()
   GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filexatonb
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
End Sub

Private Sub Command4_Click()
GetFileToOpen
End Sub

Private Sub Command5_Click()
GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filenbtobj
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
End Sub

Private Sub Command6_Click()
GetFileToOpen
End Sub

Private Sub Command7_Click()
GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filebjtonb
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
End Sub

Private Sub Command8_Click()
GetFileToOpen
End Sub

Private Sub Command9_Click()
GetFileToSave
   Set objfile1 = File1
   Set objfile2 = File2
    objfile1.Open GetFileOpenName, fsModeInput
    objfile2.Open GetFileSaveName, fsModeOutput
   Do Until objfile1.EOF = True
    bstr = objfile1.LineInputString
    If Len(bstr) > 5 Then filexatobj
   Loop
    objfile2.Close
    objfile1.Close
    Form1.Show
End Sub

Private Sub Form_OKClick()
Form1.Show
End Sub

Private Function GetFileToOpen()
    CommonDialog1.DialogTitle = "Select File"
    filefilter = "Text (*.txt)|*.txt|All (*.*)|*.*"
    CommonDialog1.Filter = filefilter
    CommonDialog1.FilterIndex = 0
    CommonDialog1.ShowOpen
    GetFileOpenName = CommonDialog1.FileName
End Function

Private Function GetFileToSave()
    CommonDialog2.CancelError = True
    CommonDialog2.DialogTitle = "Save File"
    CommonDialog2.FileName = ""
    filefilter = "Text (*.txt)|*.*"
    CommonDialog2.Filter = filefilter
    CommonDialog2.FilterIndex = 0
    CommonDialog2.ShowSave
    GetFileToSave = CommonDialog2.FileName
    GetFileSaveName = GetFileToSave
  
End Function

Sub findxy()
    jihao = 0
    For i = 1 To Len(bstr)
    If Mid(bstr, i, 1) = "," Then hx(jihao) = i: jihao = jihao + 1
    Next i
    dianhao = Mid(bstr, 1, hx(0) - 1)
    xa = CDbl(Mid(bstr, hx(0) + 1, (hx(1) - hx(0) - 1)))
    ya = CDbl(Right(bstr, (Len(bstr) - hx(1))))
End Sub

Sub filenbtoxa()
  findxy
  nbtoxa
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub
Sub filexatonb()
  findxy
  X = xa: Y = ya
  xatonb
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub
Sub filenbtobj()
  findxy
  nbtobj
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub
Sub filebjtonb()
  findxy
  bjtonb
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub
Sub filexatobj()
  findxy
  x2 = xa: y2 = ya
  xatobj
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub
Sub filebjtoxa()
  findxy
  x2 = xa: y2 = ya
  bjtoxa
  objfile2.LinePrint dianhao & "," & CStr(xx2) & "," & CStr(yy2)
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -