473,503 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB "Call" syntax vs command-style syntax

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)

I used to find that wierd, but now, I'm wondering if it isn't really the
superior style. Basically, I find myself starting to use named parameters
more (whenever it isn't blatantly obvious what the parameters must be by
looking at the call line), and I think Call reads easier in these cases. So,
do be consistent, I'm thinking I might just start using Call in all cases.

Foo Src:="ABC", Dest:=varDest

vs

Call Foo(Src:="ABC", Dest:=varDest)
Your thoughts?
Nov 13 '05 #1
15 2110
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:j5********************************@4ax.com...
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)

I used to find that wierd, but now, I'm wondering if it isn't really the
superior style. Basically, I find myself starting to use named parameters more (whenever it isn't blatantly obvious what the parameters must be by
looking at the call line), and I think Call reads easier in these cases. So, do be consistent, I'm thinking I might just start using Call in all

cases.

I've always used Call. Seems more self-documenting to me.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
On Fri, 30 Jul 2004 16:00:29 GMT, Steve Jorgensen
<no****@nospam.nospam> wrote:

You'll have to un-learn it once you write code in VB.NET

In the VBA environment I find Call more similar to function calls, and
I like it for that reason.

-Tom.

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)

I used to find that wierd, but now, I'm wondering if it isn't really the
superior style. Basically, I find myself starting to use named parameters
more (whenever it isn't blatantly obvious what the parameters must be by
looking at the call line), and I think Call reads easier in these cases. So,
do be consistent, I'm thinking I might just start using Call in all cases.

Foo Src:="ABC", Dest:=varDest

vs

Call Foo(Src:="ABC", Dest:=varDest)
Your thoughts?


Nov 13 '05 #3

"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:j5********************************@4ax.com...
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)

I used to find that wierd, but now, I'm wondering if it isn't really the
superior style. Basically, I find myself starting to use named parameters
more (whenever it isn't blatantly obvious what the parameters must be by
looking at the call line), and I think Call reads easier in these cases. So, do be consistent, I'm thinking I might just start using Call in all cases.

Foo Src:="ABC", Dest:=varDest

vs

Call Foo(Src:="ABC", Dest:=varDest)
Your thoughts?

call foo racist. i not call jorgensen true?

*Sherwood Wang MVP*

Nov 13 '05 #4
"Sherwood Wang" <sh****@waynes.net> wrote
call foo racist. i not call jorgensen true?

*Sherwood Wang MVP*


I call dialect posting by a genuine Mellon sockpuppet racist.

I call this signature an impersonation. To see a list of actual MVPs, see
http://mvp.support.microsoft.com/def...ward&style=toc .

Larry Linson
Microsoft Access MVP
Nov 13 '05 #5

"Larry Linson" <bo*****@localhost.not> wrote in message
news:OB*****************@nwrddc02.gnilink.net...
"Sherwood Wang" <sh****@waynes.net> wrote
> call foo racist. i not call jorgensen true?
>
> *Sherwood Wang MVP*
I call dialect posting by a genuine Mellon sockpuppet racist.

I call this signature an impersonation. To see a list of actual MVPs, see

http://mvp.support.microsoft.com/def...ward&style=toc .
Larry Linson
Microsoft Access MVP


you english not so very large mr larry linson. not make fun on me please
AND not make fun on asian people please AND not call me wrong name okay
please? may name on list yu hong chi win wang = sherwood wang by friends
which you not. than you very much please.

*Sherwood Wang MVP*


Nov 13 '05 #6
If you are, indeed, Yu Hong Wang, MVP, continue this communication in the
private MVP newsgroup for Access. If I do not see you posting there, it will
confirm that you are a Don P Mellon sockpuppet or tagalong troll
impersonating Yu Hong Wang.

If I do see your message there (and the other MVPs who participate here will
see it, too) I will offer my apology.

However, given that MVPs who participate here actually answer questions,
instead of posting inane, off-topic messages, until then, G'day, Donnie.

Larry Linson
Microsoft Access MVP
"Sherwood Wang" <sh****@waynes.net> wrote in message
news:5f*******************@cyclops.nntpserver.com. ..

"Larry Linson" <bo*****@localhost.not> wrote in message
news:OB*****************@nwrddc02.gnilink.net...
"Sherwood Wang" <sh****@waynes.net> wrote
> call foo racist. i not call jorgensen true?
>
> *Sherwood Wang MVP*


I call dialect posting by a genuine Mellon sockpuppet racist.

I call this signature an impersonation. To see a list of actual MVPs, see

http://mvp.support.microsoft.com/def...ward&style=toc .

Larry Linson
Microsoft Access MVP


you english not so very large mr larry linson. not make fun on me please
AND not make fun on asian people please AND not call me wrong name okay
please? may name on list yu hong chi win wang = sherwood wang by friends
which you not. than you very much please.

*Sherwood Wang MVP*


Nov 13 '05 #7
"Sherwood Wang" <sh****@waynes.net>

We are waiting for your post in the private mvp newsgroup for Access,
"Sherwood". The real Yu Hong Wang has access to that newsgroup.
Nov 13 '05 #8


"Larry Linson" <bo*****@localhost.not> wrote in message
news:iy*****************@nwrddc01.gnilink.net...
If you are, indeed, Yu Hong Wang, MVP, continue this communication in the
private MVP newsgroup for Access. If I do not see you posting there, it will confirm that you are a Don P Mellon sockpuppet or tagalong troll
impersonating Yu Hong Wang.

If I do see your message there (and the other MVPs who participate here will see it, too) I will offer my apology.

However, given that MVPs who participate here actually answer questions,
instead of posting inane, off-topic messages, until then, G'day, Donnie.

Larry Linson
Microsoft Access MVP

mr larry linson i post 1 time i post 2 time. you apology now please. or as
many you say go fly the kike!

*Sherwood Wang MVP*
Nov 13 '05 #9
"Sherwood Wang" wrote
If you are, indeed, Yu Hong Wang, MVP,
continue this communication in the private
MVP newsgroup for Access. If I do not
see you posting there, it will confirm that
you are a Don P Mellon sockpuppet or
tagalong troll impersonating Yu Hong Wang. If I do see your message there (and the
other MVPs who participate here will
see it, too) I will offer my apology.

However, given that MVPs who participate
here actually answer questions, instead of
posting inane, off-topic messages, until then,
G'day, Donnie.
mr larry linson i post 1 time i post 2 time.
you apology now please. or as
many you say go fly the kike!

*Sherwood Wang MVP*


You are not the MVP Yu Hong Wang as you claimed. Trolls and sockpuppets do
not get apologies, even for real slights, much less the imagined one that
you claim.

Donnie, don't you think that the MVPs have communication within their own
community?

You are really showing your ignorance, here, with this silly attempt at
"broken English" -- apparently you have not known the Chinese I have, most
of whom speak better English on a bad day than a Mellon-troll does on a good
day.

G'day, Donnie.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #10
"Larry Linson" <bo*****@localhost.not> wrote in message news:<iy*****************@nwrddc01.gnilink.net>...
If you are, indeed, Yu Hong Wang, MVP, continue this communication in the
private MVP newsgroup for Access. If I do not see you posting there, it will
confirm that you are a Don P Mellon sockpuppet or tagalong troll
impersonating Yu Hong Wang.

If I do see your message there (and the other MVPs who participate here will
see it, too) I will offer my apology.

However, given that MVPs who participate here actually answer questions,
instead of posting inane, off-topic messages, until then, G'day, Donnie.

Larry Linson
Microsoft Access MVP


Challenge/Response Authentication?

James A. Fortune
Nov 13 '05 #11
James Fortune wrote:
"Larry Linson" <bo*****@localhost.not> wrote in message news:<iy*****************@nwrddc01.gnilink.net>...
If you are, indeed, Yu Hong Wang, MVP, continue this communication in the
private MVP newsgroup for Access. If I do not see you posting there, it will
confirm that you are a Don P Mellon sockpuppet or tagalong troll
impersonating Yu Hong Wang.

If I do see your message there (and the other MVPs who participate here will
see it, too) I will offer my apology.

However, given that MVPs who participate here actually answer questions,
instead of posting inane, off-topic messages, until then, G'day, Donnie.

Larry Linson
Microsoft Access MVP

Challenge/Response Authentication?

James A. Fortune


Well he's a good CHAP :-)

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #12

"Larry Linson" <bo*****@localhost.not> wrote in message
news:_M*******************@nwrddc02.gnilink.net...
"Sherwood Wang" wrote
> > If you are, indeed, Yu Hong Wang, MVP,
> > continue this communication in the private
> > MVP newsgroup for Access. If I do not
> > see you posting there, it will confirm that
> > you are a Don P Mellon sockpuppet or
> > tagalong troll impersonating Yu Hong Wang. > > If I do see your message there (and the
> > other MVPs who participate here will
> > see it, too) I will offer my apology.
> >
> > However, given that MVPs who participate
> > here actually answer questions, instead of
> > posting inane, off-topic messages, until then,
> > G'day, Donnie.
> mr larry linson i post 1 time i post 2 time.
> you apology now please. or as
> many you say go fly the kike!
>
> *Sherwood Wang MVP*


You are not the MVP Yu Hong Wang as you claimed. Trolls and sockpuppets do
not get apologies, even for real slights, much less the imagined one that
you claim.

Donnie, don't you think that the MVPs have communication within their own
community?

You are really showing your ignorance, here, with this silly attempt at
"broken English" -- apparently you have not known the Chinese I have, most
of whom speak better English on a bad day than a Mellon-troll does on a

good day.

G'day, Donnie.

Larry Linson
Microsoft Access MVP

i not chinese. you rascist bad moron.

*Sherwood Wang MVP*
Nov 13 '05 #13

"Sherwood Wang" <sh****@waynes.net> wrote
i not chinese. you rascist bad moron.

*Sherwood Wang MVP*


You claimed to be the MVP Yu Hong Wang, who is Chinese, and you are
denigrating Chinese with your silly attempts at "dialect", Donnie. Put away
your sockpuppet and go answer some real Access questions.
Nov 13 '05 #14

"Larry Linson" <bo*****@localhost.not> wrote in message
news:J0****************@nwrddc03.gnilink.net...

"Sherwood Wang" <sh****@waynes.net> wrote
> i not chinese. you rascist bad moron.
>
> *Sherwood Wang MVP*
You claimed to be the MVP Yu Hong Wang, who is Chinese, and you are
denigrating Chinese with your silly attempts at "dialect", Donnie. Put

away your sockpuppet and go answer some real Access questions.

Larry,

Yu is of Taiwanese descent. I'd suggest you drop this thread before you
cause more trouble than you have already.

F. Scott Barker, Access MVP
Nov 13 '05 #15
Message-ID: <Lx*******************@cyclops.nntpserver.com>


Forgery. This is a known hangout of our resident troll.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #16

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

Similar topics

3
46950
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
3747
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...
0
1536
by: Nazgul | last post by:
Hi! Sorry if I posted it twice... 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...
7
1642
by: William Morris | last post by:
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...
13
4767
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
2862
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
2866
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
3323
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) {
0
849
by: Ralf.Schaa | last post by:
Hi there, hope somebody here can help me out: is there a command in matplotlib which resembles DISLIN's "CALL NEWPAG" ? I am trying to make multiple plots on several pages, all stored in one...
3
5905
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
7074
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...
0
7322
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...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
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,...
0
4667
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...
0
3161
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...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.