Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
visual basic program help?
im making a program for my programming class at school, its a beginner class, my program adds up many items and their prices and puts them in a text box. i also have to add the total price plus a 5% sales tax... i cant figure out a way to add the sales tax to the total price.... please help
my friend told me to try,.
Me.txtbxtax.Text = Val(Me.txtbxtotal.value) * 0.05
but it doesnt work
3 Answers
- Dr. DanLv 41 decade agoFavorite Answer
Ur Friend was using 08 just do the Val(Text1.text) * 0.5) and Dim something as Double
- bywatersLv 45 years ago
seen uncomplicated is an incredible first language considering it particularly is extremely forgiving as far as programming languages flow. In approximately an hour you'll be up and becoming ordinary calculation classes utilising VB. there are a number of great tutorials on the internet which could help you start. only be certain you be attentive to which version of VB you're utilising. The older VB6 is plenty easier than the extra moderen VB.internet 2005. There particularly arent any languages to income in the past VB because of the fact it is so ordinary. although, it particularly is an considerable language. sturdy success.
- 1 decade ago
Well, I don't know VB, but I know C++, so look. Tax would be something like this
real price / 100 * 5 // (5% tax)
The price with tax would be:
real price * 1.05 // 5 % added
I hope it helped.