what are method parameters?

sharkbate24

New member
Joined
Mar 2, 2008
Messages
1
Programming Experience
Beginner
Hey Guys.

I'm currently new to VB.NET, reading Wrox's Beginning Visual Basic .NET 2005, but one thing I'm confused on is the Methods Chapter about Parameters. So I was wondering, what are parameters?

Thanks Guys.
 
Method parameters you can add to method to specify the call. So instead of saying PaintHouse() you can add a color parameter and say PaintHouse(Blue).
 
Method parameters you can add to method to specify the call. So instead of saying PaintHouse() you can add a color parameter and say PaintHouse(Blue).

Might want to be a little more specific than that :p

VB.NET:
Here's how you would call the PaintHouse method:

PaintHouse(Blue)

And this is what the actual method would look like:
Public Sub PaintHouse (ByVal HouseColor As Color)
  'Code to "paint" the house
End Sub
 
Back
Top