Download presentation
Presentation is loading. Please wait.
Published byHajo Maier Modified over 6 years ago
7
text box.
12
I brought this up by double clicking on the command button.
13
The code takes the contents or text in the txtPayHr text box and multiply it by the contents or text in the txtHours text box and then I am assigning the answer to become the contents or text in the txtPay text box.
15
I changed txtHours to txtHrs to test this.
16
Now I have changed it back to txtHours and it is working.
17
a mistake and did not write Then after the if condition.
be asking if txtHour.text is > 40. I wrote it, said it and did not catch the error.
18
should be txtHours.text > 40.
complete. 40 from the hours before I do the multiply.
19
Still have the txtPayHr.text > 40 error!
Note the if, the else and the endif.
20
I still have the txtPayHr.text > 40 error!
Notice I am naming the work areas wkReg and wkOvt.
21
My ERROR!
22
Still comparing the wrong field to 40. Error!
I am then adding things together.
23
Still comparing the wrong thing to 40 - I really need to compare txtHours.text to 40.
24
I finally caught the error - but only when I ran and saw the wrong output - I was getting 1250 because the pay per hour was not great than 40 so it was doing the calculation in the else.
25
not allow anyone to enter data into the txtPay text box.
26
I am now downloading some projects and forms for the next example - you see here the projects that I downloaded.
27
forms - you want to click on the + to see the forms.
28
of code.
29
I am now getting ready to run the project.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.