Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB. Help with percentage.
#1
Basically, this is what I am supposed to do:

Quote:Write an application that accepts from the user the wholesale cost of an item and its markup percentage. (For example, if an item's wholesale cost is $5 and its retail price is $10, the the markup is 100%.

When the user clicks the Get Retail button, the program should do the following:
-Verify that the values entered by the user for the wholesale cost and the markup % are numeric and not negative [I'm assuming I'm going to Dim my two textboxes + label as Decimal.]
-Call the CalcRetail button
-Display the retail cost as returned from the function

What I have so far (and I think I'm doing this wrong, I just hit a dead-end at the percentage):

[Image: osupvb.png]
[Image: osupvb2.png]


The set that grey'd out area as lblRetail, because in the book, the Retail Price number is the answer.
Reply


Messages In This Thread
VB. Help with percentage. - by Khoi - 2010-11-11, 05:01 PM
VB. Help with percentage. - by Jedward - 2010-11-11, 05:32 PM
VB. Help with percentage. - by Khoi - 2010-11-11, 05:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)