Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with special functions on calculator!!!!!

Status
Not open for further replies.

jaymil253

Programmer
Sep 4, 2000
2
US
thanks for the help with the memory buttons.

I also need help with my special function buttons, the square root buttton (index 0), the negative postive button (index 1), the percent button (index 2) they are also in a array im intrested to see how someone else would go about coding this because obviously my coding is wrong.

thanks for any help.
 
jay,

when i installed vb6.0 it came with some sample programs. one of these was an example of a calculator, source et.al. not the best but a good start. try looking on your install cd for the sample project.

i looked at it because (as my 1st or 2nd project) i wanted to make a calculator that dealt with arbitraily large or small numbers. i wound up modifying just about everything... but, again, it did help to have some input.

rafe
 
It's mi again!

Select case Index
case 0
txtDisplay.txt = sqr(val(txtDiplay.txt))
case 1
txtDisply.txt = val(txtDisplay.txt) * -1
case 2
txtDisplay.txt = val(txtDisplay.txt) / 100
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top