📄 水准测量.frm
字号:
VERSION 5.00
Object = "{D76D7130-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSFLEX7D.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmshzcl
BorderStyle = 1 'Fixed Single
Caption = "水准测量"
ClientHeight = 5700
ClientLeft = 45
ClientTop = 330
ClientWidth = 6315
Icon = "水准测量.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5700
ScaleWidth = 6315
StartUpPosition = 2 '屏幕中心
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 3600
Top = 120
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 4
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "水准测量.frx":0442
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "水准测量.frx":0984
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "水准测量.frx":0EC6
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "水准测量.frx":0FD8
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 330
Left = 0
TabIndex = 4
Top = 0
Width = 6315
_ExtentX = 11139
_ExtentY = 582
ButtonWidth = 609
ButtonHeight = 582
Style = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "保存"
Object.ToolTipText = "另存为"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "打开"
Object.ToolTipText = "打开"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "插入行"
Object.ToolTipText = "插入后行"
ImageIndex = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "删除行"
Object.ToolTipText = "删除行"
ImageIndex = 4
EndProperty
EndProperty
End
Begin VB.CommandButton Command2
Caption = "到EXCEL"
Height = 375
Left = 0
TabIndex = 3
Top = 5280
Width = 975
End
Begin VB.CommandButton Command1
Caption = "关闭"
Height = 375
Left = 5280
TabIndex = 1
Top = 5280
Width = 975
End
Begin VSFlex7DAOCtl.VSFlexGrid VSFlexGrid1
Height = 4845
Left = 0
TabIndex = 0
Top = 360
Width = 6255
_cx = 11033
_cy = 8546
_ConvInfo = 1
Appearance = 1
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MousePointer = 0
BackColor = -2147483643
ForeColor = -2147483640
BackColorFixed = -2147483633
ForeColorFixed = -2147483630
BackColorSel = -2147483635
ForeColorSel = -2147483634
BackColorBkg = 14737632
BackColorAlternate= -2147483643
GridColor = -2147483633
GridColorFixed = -2147483632
TreeColor = -2147483632
FloodColor = 192
SheetBorder = -2147483642
FocusRect = 3
HighLight = 1
AllowSelection = -1 'True
AllowBigSelection= -1 'True
AllowUserResizing= 3
SelectionMode = 0
GridLines = 1
GridLinesFixed = 2
GridLineWidth = 1
Rows = 20
Cols = 7
FixedRows = 1
FixedCols = 1
RowHeightMin = 0
RowHeightMax = 0
ColWidthMin = 0
ColWidthMax = 0
ExtendLastCol = 0 'False
FormatString = ""
ScrollTrack = 0 'False
ScrollBars = 3
ScrollTips = 0 'False
MergeCells = 0
MergeCompare = 0
AutoResize = -1 'True
AutoSizeMode = 0
AutoSearch = 0
AutoSearchDelay = 2
MultiTotals = -1 'True
SubtotalPosition= 1
OutlineBar = 0
OutlineCol = 0
Ellipsis = 0
ExplorerBar = 0
PicturesOver = 0 'False
FillStyle = 0
RightToLeft = 0 'False
PictureType = 0
TabBehavior = 0
OwnerDraw = 0
Editable = 2
ShowComboButton = -1 'True
WordWrap = 0 'False
TextStyle = 0
TextStyleFixed = 0
OleDragMode = 0
OleDropMode = 0
DataMode = 0
VirtualData = -1 'True
ComboSearch = 3
AutoSizeMouse = -1 'True
FrozenRows = 0
FrozenCols = 0
AllowUserFreezing= 3
BackColorFrozen = 0
ForeColorFrozen = 0
WallPaperAlignment= 9
Begin MSComDlg.CommonDialog CommonDialog1
Left = 4440
Top = 4320
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Begin VB.Label Label1
Caption = "最后一行测点不要填写数据,不然无法增加行。"
Height = 255
Left = 1080
TabIndex = 2
Top = 5400
Width = 3855
End
End
Attribute VB_Name = "frmshzcl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim yg As Single
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComCtlLib.Button)
'工具栏菜单
Dim i As Integer, j As Integer
Dim Strhsj As String
Dim Strdygsj As String
Dim Strfile As String
On Error Resume Next
Select Case Button.Key
Case "保存"
CommonDialog1.CancelError = True
CommonDialog1.InitDir = App.Path & "\"
CommonDialog1.Filter = "水准数据(*.gsz)|*.gsz|all files(*.*)|*.*"
CommonDialog1.FileName = "水准数据"
CommonDialog1.ShowSave
Strfile = CommonDialog1.FileName
Strhsj = ""
For i = 1 To VSFlexGrid1.Rows - 1
For j = 0 To VSFlexGrid1.Cols - 1
If Strdygsj = "" Then
Strdygsj = VSFlexGrid1.TextMatrix(i, j)
Else
Strdygsj = Strdygsj + "," + VSFlexGrid1.TextMatrix(i, j)
End If
Next j
If Strhsj = "" Then
Strhsj = Strdygsj
Else
Strhsj = Strhsj & vbCrLf & Strdygsj
End If
Strdygsj = ""
Next i
Open Strfile For Output As #1
Print #1, Strhsj
Close #1
Case "插入行"
VSFlexGrid1.AddItem "", VSFlexGrid1.Row + 1
Case "删除行"
VSFlexGrid1.RemoveItem VSFlexGrid1.Row
Case "打开"
CommonDialog1.CancelError = True
CommonDialog1.InitDir = App.Path & "\"
CommonDialog1.Filter = "水准数据(*.gsz)|*.gsz|所有文件(*.*)|*.*"
CommonDialog1.ShowOpen
Strfile = CommonDialog1.FileName
j = 1
If Strfile <> "" Then
Open Strfile For Input As #1
Do Until EOF(1)
Line Input #1, wenben
Call fjwb50
For i = 0 To 6
VSFlexGrid1.TextMatrix(j, i) = sj(i + 1)
Next i
j = j + 1
VSFlexGrid1.Rows = j + 1
Loop
Close #1
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -