Creating a program with a variable sum
First we make like this
Then we change to be like this
Set His estate:
Object | Property | Nilai |
Label1 | Caption | x |
Label2 | Caption | y |
Label3 | Caption | result |
Label4 | Caption | Summation program |
Text1 | Text | (delete) |
Text2 | Text | (delete) |
Text3 | Text | (delete) |
Command1 | Caption | Sum |
Command2 | Caption | exit |
Program Listings:
1. Variable declaration, put on the General
Dim x As Integer
Dim y As Integer
Dim result As Integer
2. Exit
Private Sub Command2_Click ()
End
End Sub
3. Sum
Private Sub Command1_Click ()
x = Text1.Text
y = Text2.Text
result = x + y
Text3.Text = result
End Sub
Completed
thank you for visiting my blog
0 comments:
Post a Comment
thank you for visiting my blog and comment here. I hope the commentary contains a comment which intend to build and repair. criticism and suggestions I gladly accept.