Results 1 to 12 of 12

Thread: When to use Call?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329

    When to use Call?

    There's so many ways to access an external module.

    x = FunctionName()
    SubName

    Call Name


    When do i say call?
    When do i just type the name of whatever i want called on a line by itself?
    ______________

  2. #2
    Addicted Member
    Join Date
    May 1999
    Posts
    161
    It makes no difference as far as I know.

    Call ThisFunction(a,b) and ThisFunction a, b should produce the same result...

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    There is an ongoing thread right now talking about this, and there have been numerous ones in the past. Don't start a new one.

    The simplest answer would be: whenever you want to. It doesn't really matter.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Registered User
    Join Date
    Mar 2002
    Location
    Nashville, TN
    Posts
    103
    It doesn't really matter. I think it's a matter of preference. I personally always use call because I like to be able to enclose the values I wish to pass to the function/routine in parentheses. Also, I can quickly pick out in a routine where I'm calling other functions. But like I said, it's just a matter of personal preference. In VB .Net, you will ALWAYS use call. You can no longer just type the routine/function name so if you plan to move to VB .Net, it might not be a bad idea to get into the habit of using the Call keyword.

  5. #5
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    Originally posted by smcgarry
    In VB .Net, you will ALWAYS use call. You can no longer just type the routine/function name so if you plan to move to VB .Net, it might not be a bad idea to get into the habit of using the Call keyword.
    That's crazy! Why on earth would they do such a thing? I guess it is yet again "Microsoft's infinite wisdom..." they're totally losing the point of a BASIC-based language, in my (humble) opinion...

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    If this is true, why hasn't anyone brought it up in the huge Call discussion?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    I don't know... which thread is that?
    P.S. Hobo, it's great to know that you're alive. No pizza for you though.

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    I have no idea why not... maybe it's not true? Smcgarry, are you sure?

    And Hobo, how's your finger?

  10. #10
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    It's still there

    Uh, the blue thing, I mean. Well, and the finger too.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  11. #11
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    "Oh, no" for the blue thing, and "good" for the finger.
    What have you done with it?

  12. #12
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Stared at it?

    -Off to work
    My evil laugh has a squeak in it.

    kristopherwilson.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