Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



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

Posts: 153
Location: Houston
Trades: 0
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_
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
 
Register now for full access!
Old 02-04-2007, 05:31 PM Re: Support with Convert Functions
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.w3schools.com/vbscript/vb...asp#conversion

Homework project ?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-05-2007, 01:40 AM Re: Support with Convert Functions
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Try this:
http://www.startvbdotnet.com/language/conversion.aspx
__________________
- -- --- ---- ----- ------ ------- ---------------
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, 03:55 PM Re: Support with Convert Functions
Red_X_'s Avatar
Extreme Talker

Posts: 153
Location: Houston
Trades: 0
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.
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Reply     « Reply to Support with Convert Functions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.39545 seconds with 12 queries