You are on page 1of 2

On the practice number 5 we saw new elements, like the command “Val”, here we

have the code when the user clicks the button:

And we are going to get these:


In the first block or string we put a number “10” and the second other number, but,
now with the number “5” and when we press ADD they sum each other.

Now we are not going to use a messageBox, now, we are going to use a label. Here we have the
program, we declare the variables with “Dim” and here we have the code:
This is going to do the same that the last program, but instead of a message box, we have a label.
When we already wrote the 2 number, we press in the button Calculate and then the result
appears in the yellow label.

You might also like