📄 强度评定.frm
字号:
VERSION 5.00
Object = "{D76D7130-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSFLEX7D.OCX"
Begin VB.Form frmqdpd
BorderStyle = 1 'Fixed Single
Caption = "强度评定"
ClientHeight = 4095
ClientLeft = 45
ClientTop = 330
ClientWidth = 7395
Icon = "强度评定.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 4095
ScaleWidth = 7395
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame2
Caption = "计算结果"
Height = 3615
Left = 3840
TabIndex = 13
Top = 0
Width = 3495
Begin VB.ListBox List1
Height = 3300
Left = 120
TabIndex = 14
Top = 240
Width = 3255
End
End
Begin VSFlex7DAOCtl.VSFlexGrid VSFlexGrid1
Height = 3975
Left = 1920
TabIndex = 8
Top = 75
Width = 1815
_cx = 3201
_cy = 7011
_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 = 2
Cols = 2
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
End
Begin VB.Frame Frame1
Caption = "原始资料"
Height = 4095
Left = 0
TabIndex = 11
Top = 0
Width = 1815
Begin VB.Frame Frame3
Caption = "公路等级"
Height = 975
Left = 120
TabIndex = 16
Top = 3000
Width = 1575
Begin VB.OptionButton Option6
Caption = "其他公路"
Height = 255
Left = 120
TabIndex = 7
Top = 600
Width = 1335
End
Begin VB.OptionButton Option5
Caption = "高速、一级"
Height = 255
Left = 120
TabIndex = 6
Top = 240
Value = -1 'True
Width = 1335
End
End
Begin VB.TextBox Text2
Height = 270
Left = 960
TabIndex = 4
Text = "Text2"
ToolTipText = "单位:MPa"
Top = 2160
Width = 735
End
Begin VB.TextBox Text1
Height = 270
Left = 960
TabIndex = 5
Text = "Text1"
Top = 2640
Width = 735
End
Begin VB.OptionButton Option4
Caption = "水泥砂浆强度"
Height = 375
Left = 120
TabIndex = 3
Top = 1680
Width = 1455
End
Begin VB.OptionButton Option3
Caption = "喷射砼抗压强度"
Height = 375
Left = 120
TabIndex = 2
Top = 1200
Width = 1575
End
Begin VB.OptionButton Option2
Caption = "水泥砼抗压强度"
Height = 375
Left = 120
TabIndex = 1
Top = 720
Value = -1 'True
Width = 1575
End
Begin VB.OptionButton Option1
Caption = "水泥砼弯拉强度"
Height = 375
Left = 120
TabIndex = 0
Top = 240
Width = 1575
End
Begin VB.Label Label2
Caption = "设计强度"
Height = 255
Left = 120
TabIndex = 15
Top = 2160
Width = 855
End
Begin VB.Label Label1
Caption = "试件组数"
Height = 255
Left = 120
TabIndex = 12
Top = 2640
Width = 855
End
End
Begin VB.CommandButton Command2
Caption = "关闭"
Height = 375
Left = 6360
TabIndex = 10
Top = 3720
Width = 975
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 375
Left = 5280
TabIndex = 9
Top = 3720
Width = 975
End
End
Attribute VB_Name = "frmqdpd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim sz() As Double
Private Sub Command1_Click()
'计算
On Error GoTo handlerror
If VSFlexGrid1.TextMatrix(1, 1) = "" Then
xianshi = MsgBox("请输入试件的强度数值,然后再计算。", vbInformation, "问题提示")
Exit Sub
End If
n = Val(Text1.Text) '组数
ReDim sz(n)
rsz = Val(Text2.Text) '设计强度
Rmin = 0 '最小的强度
xp = 0 '强度平均值
sp = 0 '方差
pdz1 = 0 '判断值
pdz2 = 0
For i = 1 To VSFlexGrid1.Rows - 1
sz(i) = Val(VSFlexGrid1.TextMatrix(i, 1))
If i = 1 Then Rmin = sz(1)
If sz(i) < Rmin Then Rmin = sz(i)
xp = xp + sz(i) / n
Next i
For i = 1 To n
sp = sp + (xp - sz(i)) * (xp - sz(i))
Next i
If n = 1 Then n = 2
sp = sp / (n - 1)
sp = Sqr(sp)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -