473,651 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(par m1, parm2)

...?
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri
Jul 19 '05 #1
7 1652
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(par m1, parm2)

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

Jul 19 '05 #2
"Aaron Bertrand - MVP" <aa***@TRASHasp faq.com> wrote in message
news:en******** ******@tk2msftn gp13.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***@TRASHasp faq.com> wrote in message
news:uF******** ******@TK2MSFTN GP12.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***@TRASHasp faq.com> wrote in message
news:uF******** ******@TK2MSFTN GP12.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(par m1, 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.publi c.scripting.vbs cript 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
46965
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
3753
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 upper limit, then it starts to delete log files until the space is less than a given
15
2118
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 "ABC", varDest Occasionally, I see code using the Call syntax instead. Call Foo("ABC", varDest)
13
4794
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, $statement); Result: PHP Warning: odbc_exec(): SQL error: CLI0119E Unexpected system failure.
10
2877
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
2873
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. When I try and run, I get the folowing error: "The call to Server.CreateObject failed while checking permissions. Access is denied to this object." I've not compiled this, but am following instructions to just run the
5
3331
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
2867
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 understand: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set...
3
5913
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> CC </nodeCC>
0
8357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8277
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7298
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.