?? form8.frm
字號:
VERSION 5.00
Begin VB.Form Form8
Caption = "臨界水深的計算(1——3)"
ClientHeight = 5535
ClientLeft = 60
ClientTop = 420
ClientWidth = 7305
LinkTopic = "Form8"
ScaleHeight = 5535
ScaleWidth = 7305
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text5
Height = 615
Left = 2520
TabIndex = 7
Top = 2640
Width = 2415
End
Begin VB.TextBox Text4
Height = 615
Left = 4440
TabIndex = 6
Top = 1200
Width = 2175
End
Begin VB.TextBox Text3
Height = 615
Left = 720
TabIndex = 5
Top = 1200
Width = 1935
End
Begin VB.TextBox Text2
Height = 615
Left = 4440
TabIndex = 4
Top = 240
Width = 2175
End
Begin VB.TextBox Text1
Height = 615
Left = 720
TabIndex = 3
Top = 240
Width = 1935
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 615
Left = 5280
TabIndex = 2
Top = 4800
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "清除"
Height = 615
Left = 2880
TabIndex = 1
Top = 4800
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "計算"
Height = 615
Left = 240
TabIndex = 0
Top = 4800
Width = 1815
End
Begin VB.Label Label6
Height = 615
Left = 240
TabIndex = 13
Top = 3960
Width = 6855
End
Begin VB.Label Label5
Caption = "臨界水深H"
Height = 615
Left = 1680
TabIndex = 12
Top = 2640
Width = 615
End
Begin VB.Label Label4
Caption = "動能校正系數a"
Height = 615
Left = 3720
TabIndex = 11
Top = 1200
Width = 735
End
Begin VB.Label Label3
Caption = "流量Q"
Height = 615
Left = 120
TabIndex = 10
Top = 1200
Width = 615
End
Begin VB.Label Label2
Caption = "邊坡系數M"
Height = 615
Left = 3720
TabIndex = 9
Top = 240
Width = 735
End
Begin VB.Label label1
Caption = "底寬b"
Height = 615
Left = 120
TabIndex = 8
Top = 240
Width = 615
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim b As Single, m As Single, q As Single, h As Single, g As Single, x As Single
b = Val(Text1.Text)
m = Val(Text2.Text)
q = Val(Text3.Text)
a = Val(Text4.Text)
If b <> 0 And q <> 0 And a >= 1 Then
h = 0
x = (a * q ^ 2) / 9.81
Do While ((((b + (m * h)) * h) ^ 3 / (b + 2 * m * h)) - x) / x < 0.001
h = h + 0.0001
Loop
Text5.Text = Str(h)
Else
Label6.Caption = "請輸入除H外的所有數據"
Text1.SetFocus
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Label6.Caption = ""
Text1.SetFocus
End Sub
Private Sub Command3_Click()
Form8.Hide
Form6.Show
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -