Proper Coding Form

F

Frank McLellan

G'day
When calling a procedure from within another procedure is it proper form to
use "Call" with the procedure name or just specify the procedure?? Or is it
just personal preference??
E.g.
Sub MyCode()
More Code
Call mySubCode or should this be simply mySubCodeEnd Sub
 
J

JE McGimpsey

Frank McLellan said:
G'day
When calling a procedure from within another procedure is it proper form to
use "Call" with the procedure name or just specify the procedure?? Or is it
just personal preference??
E.g.
Sub MyCode()
Call mySubCode or should this be simply mySubCode
End Sub

Either is "proper". Which you use is largely a matter of personal
preference. Note that the syntax is different if you have arguments
(Call requires that arguments be contained within parens) and that Call
discards any return values.

Most programmers that I know don't use Call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top