Results 1 to 3 of 3

Thread: what's the diffrence?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Vilnius, Lithuania
    Posts
    50

    Post

    hello,

    i just wanted to ask what's the basic diffrence betwen sub and function
    (with code please)

    ------------------
    -casparas

    novice programer
    [email protected]

  2. #2
    Guest

    Post

    a function is the same as a sub but it can return a value inside its name:

    Code:
    private function MyFunct(byval AA, Byval BB) as boolean
    if AA < BB then MyFunct = true
    end function
    ------------------

    Wossname,
    Email me: [email protected]

  3. #3
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    Post

    There's a free lesson at ZDU all about normal procedures and functions for free. I took it but I forgot what the difference between the two is. It's something about the way they are called (activated), and how the variables are passed.
    Sorry if I wan't too much of a help!

    ------------------
    Regards,
    Alexander McAndrew
    VB Zone
    http://gsenterprise.server101.com


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