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

📄 放线3.frm

📁 反算坐标 求得距离及方位角
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form3 
   Caption         =   "支导线输入"
   ClientHeight    =   3765
   ClientLeft      =   6510
   ClientTop       =   4065
   ClientWidth     =   5310
   Icon            =   "放线3.frx":0000
   LinkTopic       =   "Form3"
   ScaleHeight     =   3765
   ScaleWidth      =   5310
   Begin VB.TextBox Text4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      HideSelection   =   0   'False
      Left            =   2280
      TabIndex        =   2
      Text            =   "90"
      Top             =   1680
      Width           =   2175
   End
   Begin VB.CommandButton Command3 
      Caption         =   "放弃存盘"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3840
      TabIndex        =   6
      Top             =   3000
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "存盘继续"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   4
      Top             =   3000
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "存盘返回"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2040
      TabIndex        =   5
      Top             =   3000
      Width           =   1335
   End
   Begin VB.TextBox Text3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2280
      TabIndex        =   3
      Top             =   2280
      Width           =   2175
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2280
      TabIndex        =   1
      Top             =   1080
      Width           =   2175
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2880
      TabIndex        =   0
      Top             =   480
      Width           =   1575
   End
   Begin VB.Label Label5 
      Caption         =   "垂直角:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1080
      TabIndex        =   11
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "支导线输入"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1695
      Left            =   240
      TabIndex        =   10
      Top             =   480
      Width           =   495
   End
   Begin VB.Line Line4 
      X1              =   0
      X2              =   5280
      Y1              =   3720
      Y2              =   3720
   End
   Begin VB.Line Line3 
      X1              =   5280
      X2              =   5280
      Y1              =   0
      Y2              =   3720
   End
   Begin VB.Line Line2 
      X1              =   0
      X2              =   5280
      Y1              =   0
      Y2              =   0
   End
   Begin VB.Line Line1 
      X1              =   0
      X2              =   0
      Y1              =   3720
      Y2              =   0
   End
   Begin VB.Label Label3 
      Caption         =   "距离:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1200
      TabIndex        =   9
      Top             =   2280
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "水平角:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1080
      TabIndex        =   8
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "支导线点号:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1080
      TabIndex        =   7
      Top             =   480
      Width           =   1455
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
  WZdh = Text1.Text: Hr = Text2.Text: Hd = Text3.Text: Vr = Text4.Text
  If WZdh = "" Or Hr = "" Or Hd = "" Or Vr = "" Then
    MsgBox "观测数据不能输入空值,请重新输入!", 0, "支导线输入"
   Else
    If Val(Hr) > 180 Then HRL = Trim(Str((Val(Hr) - 180)))
    If Val(Hr) <= 180 Then HRL = Trim(Str((Val(Hr) + 180)))
    Print #1, "#2,"; WZdh; ",0,"; Hr; ","; Vr; ","; Hd; ","; _
        HRL; ","; Trim(Str(Xstojd(360 - Jdtoxs(Val(Vr))))); ","; Hd; ",180;"
    Close #1
      Me.Hide
      Unload Me
      Form1.Show
  End If
End Sub

Private Sub Command2_Click()
  WZdh = Text1.Text: Hr = Text2.Text: Hd = Text3.Text: Vr = Text4.Text
  If WZdh = "" Or Hr = "" Or Hd = "" Or Vr = "" Then
    MsgBox "观测数据不能输入空值,请重新输入!", 0, "支导线输入"
   Else
    If Val(Hr) > 180 Then HRL = Trim(Str((Val(Hr) - 180)))
    If Val(Hr) <= 180 Then HRL = Trim(Str((Val(Hr) + 180)))
     Print #1, "#2,"; WZdh; ",0,"; Hr; ","; Vr; ","; Hd; ","; _
        HRL; ","; Trim(Str(Xstojd(360 - Jdtoxs(Val(Vr))))); ","; Hd; ",180;"
    Text1.Text = "": Text2.Text = "": Text3.Text = "": Text4.Text = "90"
  End If
   Text1.TabIndex = 0
End Sub

Private Sub Command3_Click()
  Close #1
   Me.Hide
   Unload Me
   Form1.Show
End Sub

Private Sub Form_Load()
 Form1.Hide
 Dim WZdh, Hr, Vr, Hd, HRL As String
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
   KeyAscii = 0
   End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
   KeyAscii = 0
   End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If (KeyAscii < 46 Or KeyAscii > 57) And KeyAscii <> 8 Then
   KeyAscii = 0
   End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
  Cancel = True
End Sub

⌨️ 快捷键说明

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