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 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
"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
> 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...
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...
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...
"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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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) ?
|
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
|
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)
|
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.
|
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.
| |
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
|
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)
{
|
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...
|
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>
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |