Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Keyword 2

Status
Not open for further replies.

Morpheus1981

Programmer
Aug 9, 2001
105
CR
I 've looking for a clear explanation of "Call" keyword. But I still don't understand what is it exactly for?
Can anyone tell why should I use Call keyword before a sub?
How can use it? Does it do something? I have made many tests and I no see difference between using it and don't use it...
Advise me please
 
"...You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded."

I think the that the only one difference between that you can simply reject the return value.
..++ or with parantheses the calling is more separable
ide ide
 
If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded."
The return value is discarded in either case because in either case (with or without CALL keyword) it is still a "Call" just like
X = 1
and
Let X = 1
are both Lets.
The only difference is syntax. Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top