Results 1 to 2 of 2

Thread: Very Basic Question

  1. #1

    Thread Starter
    Addicted Member Cbomb's Avatar
    Join Date
    Jul 1999
    Posts
    153

    Smile

    I was just thinking about Subs and Functions and this question came to mind: Is there a difference between the two? I'm sure there is but I've never really looked it up... So if you know please enlighten me
    Cbomb
    Techie

  2. #2
    Guest

    Cool the answer is.....

    The differns between Subs and functions is that a function returns something and the sub does not.

    ex.

    Function Add( nr1 as Integer, nr2 as Integer) as Integer
    Add = nr1 + nr2
    End Function

    This function return the sum off the two argument (nr1, nr2) so that you can use it in line like this

    Total = Add(20,40)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width