By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,301 Members | 1,752 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,301 IT Pros & Developers. It's quick & easy.

Call call

P: n/a
Hello!

I have a small question concerning to the procedure call.
I have the following procedure:

private sub procedure_name (ByVal name1 as string)
....
end sub

When I call it I just write:
....
procedure_name("something")
.....

When I add some extra parameters into the procedure that is:

private sub procedure_name (ByVal name1 as string, ByVal name2 as boolean)
....
end sub

then the procedure call would look like this:

call procedure_name("something",True)

Why???? Why there are some cases when word "call" is needed (because
excluding it, it will give us an error) and why it is not needed in the
other cases?

When do we have to use word "call" to call procedure or function?

Thank you for posts
M.
Feb 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Why is the sky blue?

I never use call.
TTBOMK all procedures (subs and functions)
can be executed as
ProcedureName Parameter1, Parameter2, Parameter3 ...

Of course, one must use
FunctionName(Parameter1, Parameter2, Parameter3 ...) to get the value
of a function.

Feb 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.