Re: Not = versus <>
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sun, 22 Oct 2006 07:37:03 GMT
On Sat, 21 Oct 2006 13:51:18 -0500, "MP" <Nospam@xxxxxxxxxx> wrote:
in the following choice is there a perferred syntax and if so why
If Not val = someval then
versus
If val <> someval then
I am firmly of the opinion that VB code should read like English
If Not Me = Full Then Eat
Somehow that looks strange to me
If Me <> Full Then Eat
Better
If ( Me <> Full ) Then Eat
Much better
Generally I reckon that if one needs to squint at code then there is
something dubious about it.
Of course there is another school of thought that believes code should
be arcane and utterly incomprehensible, so as to look mysterious and
scientific.
Patient: Doctor, I have a pain in my chest
Doctor: Ah, yes you have : costochondritis
Patient: What does that mean in English ?
Doctor: Well ... a pain in the chest
.
- Follow-Ups:
- Re: Not = versus <>
- From: Stefan Berglund
- Re: Not = versus <>
- From: Desi
- Re: Not = versus <>
- References:
- Not = versus <>
- From: MP
- Not = versus <>
- Prev by Date: Re: Displaying images on form...
- Next by Date: Re: What Should I be using - ADO, DAO, SQL, etc.?????
- Previous by thread: Re: Not = versus <>
- Next by thread: Re: Not = versus <>
- Index(es):
Relevant Pages
|