Page 85 - 4788
P. 85

End Sub

                                  Private Sub mnutab_Click()
                                  Dim space, newline As String
                                  Dim x, y As Double
                                  newline = Chr(13) + Chr(10)
                                  space = Chr(9)
                                  Text1.Text = "X" + space + "Y" + newline
                                  For x = Val(Text2.Text) To Val(Text3.Text) Step
                            Val(Text4.Text)
                                  y = Sin(x) + 1
                                  If Check1.Value = Checked Then
                                  Text1.Text = Text1.Text + Str(x) + space + Str(Format$(y,
                            "0.000")) + newline
                                  End If
                                  Next x
                                  End Sub























                                  Рисунок 10.1 – Результат викнання програми







                                                           83
   80   81   82   83   84   85   86   87   88   89   90