VB function procedue

February 27, 2009 at 20:20:18
Specs: windows pro x64, athlon 4g
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.

See More: VB function procedue

Report •

February 28, 2009 at 11:24:13
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.


Report •

February 28, 2009 at 18:26:25
thank. It finally make sense to a lot of my question!

Report •

Related Solutions

Ask Question