|
-
Nov 14th, 2002, 11:47 AM
#1
Thread Starter
Member
functions VS procedure
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|