473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

To "call" or not to "call"

So, what's the prevailing opinion regarding the use of the "CALL" keyword?
I'm working with a third-party ASP application, adapting for our system, and
the CALL keyword is used everywhere. I've never used it, preferring instead
to just type the procedure name and parameters so:

myProcedure parm1, parm2

Any thoughts on

call myProcedure(parm1, parm2)

...?
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri
Jul 19 '05 #1
7 1638
It's just different syntax and allows you to use parens around your
parameters, if you like that style. See http://www.aspfaq.com/2115

You can see the impact on ByRef/ByVal in http://www.aspfaq.com/2488

Neither is "better" IMHO, so I'm not sure what you're after.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"William Morris" <ne***************************@seamlyne.com> wrote in
message news:2h************@uni-berlin.de...
So, what's the prevailing opinion regarding the use of the "CALL" keyword?
I'm working with a third-party ASP application, adapting for our system, and the CALL keyword is used everywhere. I've never used it, preferring instead to just type the procedure name and parameters so:

myProcedure parm1, parm2

Any thoughts on

call myProcedure(parm1, parm2)

..?
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri

Jul 19 '05 #2
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
It's just different syntax and allows you to use parens around your
parameters, if you like that style. See http://www.aspfaq.com/2115

You can see the impact on ByRef/ByVal in http://www.aspfaq.com/2488

Neither is "better" IMHO, so I'm not sure what you're after.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Not really "after" anything much except opinions. Thanks, Aaron.
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri
Jul 19 '05 #3
> Not really "after" anything much except opinions. Thanks, Aaron.

Well, my point was that I don't know what you mean by "better"... faster,
more accurate, less code, more common...
Jul 19 '05 #4
Hey hey hey...I didn't say "better." But, if I had to pose my question more
specifically, I guess I was asking what's more common. If there just
happened to be something about the way the parser handles it differently,
I'd accept that too, but it was really just a request for opinions.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
Not really "after" anything much except opinions. Thanks, Aaron.


Well, my point was that I don't know what you mean by "better"... faster,
more accurate, less code, more common...

Jul 19 '05 #5
I always use Call subName. I like seeing Call, because it's much more
obvious as to what's going on than just seeing some random work sitting
there by itself. I also like to use parentheses.

Call theThing(arg1, arg2)

theThing arg1, arg2

The former looks much better imo.

Ray at work

"William Morris" <ne***************************@seamlyne.com> wrote in
message news:2h************@uni-berlin.de...
Hey hey hey...I didn't say "better." But, if I had to pose my question more specifically, I guess I was asking what's more common. If there just
happened to be something about the way the parser handles it differently,
I'd accept that too, but it was really just a request for opinions.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
Not really "after" anything much except opinions. Thanks, Aaron.


Well, my point was that I don't know what you mean by "better"... faster, more accurate, less code, more common...


Jul 19 '05 #6
"William Morris" wrote in message news:2h************@uni-berlin.de...
: So, what's the prevailing opinion regarding the use of the "CALL" keyword?
: I'm working with a third-party ASP application, adapting for our system,
and
: the CALL keyword is used everywhere. I've never used it, preferring
instead
: to just type the procedure name and parameters so:
:
: myProcedure parm1, parm2
:
: Any thoughts on
:
: call myProcedure(parm1, parm2)
:
: ..?

I never use call unless I'm on my cell phone or unless I'm replying in
response to a NG post where someone has it in their code.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #7
William Morris wrote:
So, what's the prevailing opinion regarding the use of the "CALL"
keyword?


I don't know about prevailing opinions, but I personally prefer it. It
simply makes the code more readable, IMO.

Then again, I use correct capitalization and parentheses for logic when I
write VBScript, so I'm a bit of a kook.

FWIW, microsoft.public.scripting.vbscript might represent a better barometer
for this.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ¤ Alias | last post by:
I have a function named getID3info (lvwDiscInfo.SelectedItem). What is the difference between getID3info (lvwDiscInfo.SelectedItem) and Call getID3info(lvwDiscInfo.SelectedItem) ?
2
by: Sylwia | last post by:
Hi! I need your help... I have the following problem. I've implemented the python Windows Service which behaves like a log supervisor. If the space used by log files is bigger than a given...
15
by: Steve Jorgensen | last post by:
I'm looking for coding style opinions. It looks to me like most VB/VBA coders use the command-style syntax for calling subs or functions being treated as subs in a particular context ... Foo...
13
by: Larry Menard | last post by:
Test code: $dbconn = odbc_connect($dbname, $username, $password); $path = "C:\Temp\myJar.jar"; $statement = "CALL SQLJ.INSTALL_JAR('file://$path', 'myJarId')"; $result = odbc_exec($dbconn,...
10
by: Thorsten Ottosen | last post by:
Hi, I'm trying to escape html before its saved in a database. I tried $text = htmlentities( $reader->value ); but that don't work for e.g. japanese characters.
2
by: javelin | last post by:
I'm studying "Visual Basic Developer's Guid to ASP & IIS", and I am following instructions an pp 72-75. I am creating a WebClass, and enter code as instructed, and it all is entered correctly. ...
5
by: Frederick Gotham | last post by:
If we have a simple class such as follows: #include <string> struct MyStruct { std::string member; MyStruct(unsigned const i) {
2
by: r_ahimsa_m | last post by:
Hello, I am learning PHP5. I need to parse XML file and I found a solution in some book on PHP5 ("PHP5 Programming" by Rasmus Lerdors and others). Unfortunately I have two problems that I don't...
3
by: Imaginativeone | last post by:
XML <nodeAA>AA</nodeAA> <nodeBB>BB</nodeBB> <nodeCC> <From>12/05</From> <To>11/06</To> <Months>12</Months> <Amount>10.00</Amount> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.