Reply
Support with Convert Functions
Old 02-04-2007, 01:15 PM Support with Convert Functions
Red_X_'s Avatar
Skilled Talker

Posts: 85
Location: USA
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 <<
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
When You Register, These Ads Go Away!
     
Old 02-04-2007, 04:31 PM Re: Support with Convert Functions
chrishirst's Avatar
Super Moderator

Posts: 12,752
Location: Blackpool. UK
http://www.w3schools.com/vbscript/vb...asp#conversion

Homework project ?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-05-2007, 12:40 AM Re: Support with Convert Functions
saadatshah's Avatar
Extreme Talker

Posts: 216
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Try this:
http://www.startvbdotnet.com/language/conversion.aspx
__________________
Traffic School - Driver Ed - Defensive Driving - Texas Defensive Driving - Online Traffic School - Defensive Driving Course
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 02-05-2007, 02:55 PM Re: Support with Convert Functions
Red_X_'s Avatar
Skilled Talker

Posts: 85
Location: USA
Quote:
Originally Posted by chrishirst View Post
Actually yes, I've been racking my brain. The chapter, in this book is horrible. It doesn't even cover these functions. So I hit my lab-manual. Nothing. I didn't even think to check w3schools. thanks.
__________________
>> Higher a poor college student. PM me :). PHP/MySQL <<
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Reply     « Reply to Support with Convert Functions
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12795 seconds with 13 queries