by dr bone (3 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 31st December 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Very basic code for a simple calculator
API Declarations
call command1(*)command2(-)command3(+)command4(\)note \ is a back slash for devide
msgbox(text1.text*text2.text)
private sub command2_()
msgbox(text1.text-text2.text)
private sub command3_()
dim x as integer
x=val(text1.text)
dim y as integer
y=val(text2.text)
msgbox(x+y)
'and there you have the code to make a simple calculator