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.
Lyle Fairfield - 09 Feb 2006 16:15 GMT
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.