Page 92 - Computer Class 08
P. 92

2.  Now, write the code in code window.

                  Dim First As Integer

                  Dim Second As Integer
                  Private Sub Command1_Click ()

                  First = Val(Text1.Text)
                  Second = Val(Text2.Text)

                  If First > Second Then

                  Label3.Caption=“First number is greater”
                  Else

                  Lable3. Caption = “Second number is greater”

                  End If
                  End Sub

             3.  To run this program, click on Start      button on standard toolbar.







                                                            3

































                                                           2









              Computer-8             92
   87   88   89   90   91   92   93   94   95   96   97