I have an assignment for my VB.NET class to compare functions and procedures and it has me completely confused. I wrote a program that does a bunch of math, etc. and I am required to change the following to a procedure, but all it does is mess up the whole program. Can someone please help me out a little here? Thanks,

Andrew

Private Function GetFwtTax(ByVal sngWeekPay As Single) As _ Single

-When I change Function to "Sub", the "As Single" shows erros.



What all do I need to change in the code? I am thoroughly confused about the difference between a function and procedure. HELP!!!!!!!! Thanks!