There are some code in our project that looks a bit like this:
private Sub method 1 () Call Inner Method and Sub Private Sub Method2 () Inner Method and Sub Private Sub Inner Math () "Stuff End Sub"
Method Method on Method 2 Have the advantage?
From
to:
You do not need to use call keywords Whenever a process is called. However, if you use call keywords to call a process in which logic is required, then the logic should be attached in the field if you leave the call keyword, you should also leave the bracket around the rational list . If you use call syntax to call any internal or user defined function, the value of the return of the function is removed.
For example:
sub-proc1 () debug. Print "Hello World" and all Sub Pro 2 (string as text) Debug. Print "Hello" & amp; In the instant window, if you enter Proc1
text then "Hello World"
Print If you press
call 1 call
then print "Hello World". If you enter
Proc2 "World"
then print "Hello World". If you enter
Call Pro 2 "World"
you get a compilation error. You must enter
Call Pro 2 ("World")
Comments
Post a Comment