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? 15 2126
"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:j5******** *************** *********@4ax.c om... 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
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?
"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:j5******** *************** *********@4ax.c om... 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*
"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
"Larry Linson" <bo*****@localh ost.not> wrote in message
news:OB******** *********@nwrdd c02.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*
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******** ***********@cyc lops.nntpserver .com... "Larry Linson" <bo*****@localh ost.not> wrote in message news:OB******** *********@nwrdd c02.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*
"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.
"Larry Linson" <bo*****@localh ost.not> wrote in message
news:iy******** *********@nwrdd c01.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*
"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 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: 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 files is bigger than a given upper limit, then it starts to
delete log files until the space is less than a given
lower limit. I configured the service to start up automatically on system
boot. The script checks the space used by log files
every 1000...
|
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 never used it, preferring instead
to just type the procedure name and parameters so:
myProcedure parm1, parm2
Any thoughts on
call myProcedure(parm1, parm2)
|
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: 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
ps (or pdf) document.
Cheers
-Ralf
|
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: 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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |