程序代码:
Private Sub Command1_Click() Dim H3 Dim L2 Dim u Dim PI Dim SnX Dim halfLw# Const M = 1089.9 PI = 3.1415926 u = 50 H3 = 29.15 L2 = 100 SnX = 22 halfLw# = M + PI * (u + H3) / 2 + 0.5 * L2 / SnX Text1.Text = halfLw End Sub
Private Sub Command1_Click() Dim H3 Dim L2 Dim u Dim PI Dim SnX Dim halfLw# Const M = 1089.9 PI = 3.1415926 u = 50 H3 = 29.15 L2 = 100 SnX = 22 halfLw# = M + PI * (u + H3) / 2 + 0.5 * L2 / SnX Text1.Text = halfLw End Sub