README.md

December 5, 2022 ยท View on GitHub

Easy Math

Description

Do math, add, subtract, multiply, divide

More Info

Submitted On
ByDemian Net
LevelIntermediate
User Rating3.5 (14 globes from 4 users)
CompatibilityVB 5.0, VB 6.0
CategoryMath/ Dates
WorldVisual Basic
Archive File

API Declarations

Option Explicit
 Public Sub Multiply(X As Integer, Y As Integer)
   Dim Z
   Z = X * Y
   Text3.Text = Str(Z)
 End Sub
 Public Sub Subtract(X As Integer, Y As Integer)
   Dim Z
   Z = X - Y
   Text3.Text = Str(Z)
 End Sub
 Public Sub Add(X As Integer, Y As Integer)
   Dim Z
   Z = X + Y
   Text3.Text = Str(Z)
 End Sub
 Public Sub Divide(X As Integer, Y As Integer)
   Dim Z
   Z = X / Y
   Text3.Text = Str(Z)
 End Sub

Source Code

'Make a Command1
 'Make a Text1
 'Make a Text2
 'Make a Text3 (Locked)
 'Add
 Private Sub Command1_Click()
 Add Text1, Text2
 End Sub
 'Subtract
 Private Sub Command1_Click()
 Subtract Text1, Text2
 End Sub
 'Multiply
 Private Sub Command1_Click()
 Multiply Text1, Text2
 End Sub
 'Divide
 Private Sub Command1_Click()
 Divide Text1, Text2
 End Sub