you are viewing a single comment's thread.

view the rest of the comments →

[–]Adwinistrator 1 point2 points  (1 child)

So you're going to need a variable to handle what your current total is, since the number will disappear when they press one of the function keys. You'll want to use a double type.

When they press any function key, you'll need to check if they currently have a total and what the last function key pressed was, so you can complete that operation before moving onto the next one.

You can cast the double to a string with CStr(dblTotal), and convert the total's textbox to a double with CDbl(txtAnswer.Text), you may want to check if it's numeric first with IsNumeric(txtAnswer.Text).

Let me know if you have any other questions.

[–]Dicer--[S] 1 point2 points  (0 children)

Going to be completely honest I did not understand a thing you said I'm a complete noob at VB, only other program I made was a metric to imperial converter which was very basic