|
I'm working with VB 2005. I'm rather new to the visual basic department, i'm not much of a fan of it either.
Anyway, I have a very simple program. With 2 buttons, one labeled "btnCalculate" and one labeled "btnExit", and those titles are rather odvious as to what they do.
I have 3 categories:
Initial Quality:
<insert text field>(txtQuality)
Amount Sold
<insert text field>(txtSold)
Amount Purchased
<insert text filed here>(txtPurchased)
Current Quality:
<insert label label>(lblinStock)
What I want, is to calculate the current quanitity by subtracting the quantity sold from the inital quantity, and then adding the quantity purchased to the result. Then display it the current quantity in my lblInstock" control.
I want to use the functions:
CDbl
CInt
CSng
CStr
o.o But i'm unsure of how to use them, i've googled it but still don't know how to do it.
Any support would be much appretiated.
Thank You,
Red_X_
__________________
>> Higher a poor college student. PM me :). PHP/MySQL <<
|