Find Jobs
Hire Freelancers

Dialog Control and Error Handling

$20-25 USD

Closed
Posted about 20 years ago

$20-25 USD

Paid on delivery
• Write the code so that when the user presses one of the numeric buttons on the calculator, the value is appended to the label appearing at the top of the form. 'Start Declare Variables, they must be declared at the top of your code Private strPrevOperator As String Private sngFirstNumber As Single Private sngNextNumber As Single Private sngResult As Single Private x As Short Private y As Short 'Start Multiply Code 'Multiply Button Click Private Sub btnMultiply_Click(ByVal sender As [login to view URL], ByVal e As [login to view URL]) Handles [login to view URL] If [login to view URL] <> "" And _ Not [login to view URL] <> "" Then sngResult = Val([login to view URL]) 'Store Input Number As dblResult [login to view URL] = sngResult & "*" [login to view URL] = "*" [login to view URL] = "" End If 'Test for operation and calls appropiate function Call Operator() [login to view URL] = "*" End Sub 'Start Operator Code 'Test for correct operator and calls the appropiate sub Private Sub Operator() If strPrevOperator = "+" Then Call Add() ElseIf strPrevOperator = "-" Then Call Subtract() ElseIf strPrevOperator = "*" Then Call Multiply() ElseIf strPrevOperator = "/" Then Call Divide() Else End If End Sub 'Start Multiply Code 'Multiplies the first number by the next or value of previous operation number Private Sub Multiply() If [login to view URL] <> "" And _ [login to view URL] <> "" Then sngNextNumber = Val([login to view URL]) 'Store Input Number As dblNextNumber sngResult = (sngResult * sngNextNumber) 'Multiply first number by next number, Store as dblResult [login to view URL] = [login to view URL] _ & [login to view URL] & sngNextNumber & "*" _ & [login to view URL] & sngResult [login to view URL] = "" End If End Sub 'Number Button you must build a button per number [login to view URL] = [login to view URL] & '6' 'Remember you MUST use a RichTextBox for both the Input and Output ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Windows XP Visual [login to view URL]
Project ID: 3087350

About the project

4 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$21.25 USD in 4 days
5.0 (111 reviews)
5.7
5.7
User Avatar
See private message.
$21.25 USD in 4 days
5.0 (70 reviews)
4.7
4.7
User Avatar
See private message.
$17 USD in 4 days
4.9 (11 reviews)
3.3
3.3
User Avatar
See private message.
$17 USD in 4 days
4.9 (27 reviews)
3.3
3.3

About the client

Flag of UNITED STATES
United States
5.0
4
Member since Dec 10, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.