?? form7.frm
字號(hào):
VERSION 5.00
Begin VB.Form Form7
Caption = "計(jì)算渠道水深(1-2)"
ClientHeight = 5595
ClientLeft = 60
ClientTop = 420
ClientWidth = 7110
LinkTopic = "Form7"
ScaleHeight = 5595
ScaleWidth = 7110
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "清除"
Height = 615
Left = 2640
TabIndex = 15
Top = 4560
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 615
Left = 4800
TabIndex = 13
Top = 4560
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "計(jì)算"
Height = 615
Left = 480
TabIndex = 12
Top = 4560
Width = 1695
End
Begin VB.TextBox Text6
Height = 495
Left = 2280
TabIndex = 5
Top = 3000
Width = 2175
End
Begin VB.TextBox Text5
Height = 495
Left = 1080
TabIndex = 4
Top = 2040
Width = 1455
End
Begin VB.TextBox Text4
Height = 495
Left = 4800
TabIndex = 3
Top = 2040
Width = 1695
End
Begin VB.TextBox Text3
Height = 495
Left = 1080
TabIndex = 2
Top = 1080
Width = 1455
End
Begin VB.TextBox Text2
Height = 495
Left = 4800
TabIndex = 1
Top = 240
Width = 1695
End
Begin VB.TextBox Text1
Height = 495
Left = 1080
TabIndex = 0
Top = 240
Width = 1455
End
Begin VB.Label Label7
Height = 495
Left = 240
TabIndex = 14
Top = 3720
Width = 6375
End
Begin VB.Label Label6
Caption = "水深 h"
Height = 495
Left = 1680
TabIndex = 11
Top = 3000
Width = 495
End
Begin VB.Label Label5
Caption = "底坡i"
Height = 495
Left = 600
TabIndex = 10
Top = 2040
Width = 495
End
Begin VB.Label Label4
Caption = "流量Q"
Height = 495
Left = 4200
TabIndex = 9
Top = 2040
Width = 615
End
Begin VB.Label Label3
Caption = "底寬B"
Height = 495
Left = 600
TabIndex = 8
Top = 1080
Width = 735
End
Begin VB.Label Label2
Caption = "糙率N"
Height = 495
Left = 4200
TabIndex = 7
Top = 240
Width = 615
End
Begin VB.Label Label1
Caption = " 邊坡系數(shù)M"
Height = 495
Left = 120
TabIndex = 6
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form7"
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, h1 As Single, i As Single, n As Single, q1 As Single, q2 As Single
m = Val(Text1.Text)
n = Val(Text2.Text)
b = Val(Text3.Text)
q1 = Val(Text4.Text)
i = Val(Text5.Text)
If m > 0 And n > 0 And b > 0 And q1 > 0 And i <> 0 Then
Do While (q2 - q1) / q1 < 0.0001
h1 = h1 + 0.00001
q2 = (b + m * h1) * h1 * (1 / n) * (((b + m * h1) * h1) / (b + 2 * h1 * ((1 + m ^ 2) ^ (1 / 2)))) ^ (2 / 3) * (i ^ (1 / 2))
Loop
Text6.Text = Str(h1)
Else
Label7.Caption = "請(qǐng)輸入除H外所有的數(shù)據(jù)"
End If
End Sub
Private Sub Command2_Click()
Form6.Show
Form7.Hide
End Sub
Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Label7.Caption = ""
Text1.SetFocus
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -