30 likes | 149 Views
特殊的元件 (P. 11-19). MultiPage. OptionButton. Frame. 執行例. Program Code. Private Sub CommandButton1_Click() Dim rate As Double Dim nper As Integer Dim pmt As Integer rate = TextBox1.Text / 100 / 12 nper = TextBox2.Text pmt = TextBox3.Text * -1 If OptionButton1.Value Then
E N D
特殊的元件(P. 11-19) MultiPage OptionButton Frame
Program Code Private Sub CommandButton1_Click() Dim rate As Double Dim nper As Integer Dim pmt As Integer rate = TextBox1.Text / 100 / 12 nper = TextBox2.Text pmt = TextBox3.Text * -1 If OptionButton1.Value Then MsgBox "Future Value=" & FV(rate, nper, pmt, 0, 0) Else MsgBox "Future Value=" & FV(rate, nper, pmt, 0, 1) End If End Sub Private Sub CommandButton2_Click() End End Sub