Computing.Net > Forums > Programming > VB function procedue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB function procedue

Reply to Message Icon

Name: donever
Date: February 27, 2009 at 20:20:18 Pacific
OS: windows pro x64
CPU/Ram: athlon 4g
Product: Custom / CUSTOM BUILD
Subcategory: Theory
Comment:

hello! ok so I'm studying function procedure and one thing they didn't stress enough in the book is this!

function Vacation ( ByVal decCost as decimal) as decimal

does anybody have any ideas what is the as decimal after the parentheses mean? thank in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: February 28, 2009 at 11:24:13 Pacific
Reply:

It means that the value returned by the function will be a decimal.

If this parameter is left out VB defaults to integer which will cause errors if you are expecting something else.

Stuart


0

Response Number 2
Name: donever
Date: February 28, 2009 at 18:26:25 Pacific
Reply:

thank. It finally make sense to a lot of my question!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


opening files Need help with Unix Scrip...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB function procedue

vb+dos www.computing.net/answers/programming/vbdos/1978.html

VB -- Strings www.computing.net/answers/programming/vb-strings/5214.html

How to access VB function from java www.computing.net/answers/programming/how-to-access-vb-function-from-java/1220.html