|
-
May 31st, 2002, 02:06 PM
#1
Thread Starter
Hyperactive Member
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?
-
May 31st, 2002, 02:07 PM
#2
Addicted Member
It makes no difference as far as I know.
Call ThisFunction(a,b) and ThisFunction a, b should produce the same result...
-
May 31st, 2002, 02:07 PM
#3
Stuck in the 80s
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.
-
May 31st, 2002, 02:49 PM
#4
Registered User
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.
-
May 31st, 2002, 02:56 PM
#5
Hyperactive Member
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...
-
May 31st, 2002, 02:58 PM
#6
Stuck in the 80s
If this is true, why hasn't anyone brought it up in the huge Call discussion?
-
May 31st, 2002, 03:00 PM
#7
Hyperactive Member
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.
-
May 31st, 2002, 03:02 PM
#8
Stuck in the 80s
-
May 31st, 2002, 03:12 PM
#9
Hyperactive Member
I have no idea why not... maybe it's not true? Smcgarry, are you sure?
And Hobo, how's your finger?
-
May 31st, 2002, 03:44 PM
#10
Stuck in the 80s
It's still there
Uh, the blue thing, I mean. Well, and the finger too.
-
May 31st, 2002, 03:49 PM
#11
Hyperactive Member
"Oh, no" for the blue thing, and "good" for the finger.
What have you done with it?
-
May 31st, 2002, 03:50 PM
#12
Stuck in the 80s
Stared at it?
-Off to work
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
|