Re: Not = versus <>



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


.



Relevant Pages

  • Re: Vet Tech Journals: Good and Bad News
    ... Doctor gave me muscle relaxers and told me to take it easy, ... I went through just about every diet imaginable, except that I never fell for the ridiculous diets like one food. ... the extreme restriction on carbs eliminated a lifetime of cravings to sweets and all sorts of dense carbs. ... That is, I follow the basic plan but *in addition* I eat *no* potatoes, flour, refined sugar, pasta, or white rice. ...
    (rec.pets.cats.anecdotes)
  • "well, well, well" in MacBeth
    ... "The Stories of English" (Penguin, London, ... 'And in "Macbeth" the Doctor uses ... the reins of England too in the form of James VI ... Reading historically, Shakespeare just wished ...
    (alt.usage.english)
  • Re: Vegetables more effective than fruit
    ... works for you and he realizes this so he advises you to eat this way. ... Glad to hear you are listening to your doctor and even happier to hear ... better to use your scale and meter than to wait until ... Exercise is important is f you are able to do it. ...
    (alt.support.diabetes)
  • Re: Huge jump in my A1c
    ... Monday my doctor wanted to see me again and have another blood draw to ... I eat a light meal at around 5:30 p.m. ... with peanut butter for breakfast, so Laurie is fixing hot cereal for ... That delay is so I can test before the next meal or snack. ...
    (alt.support.diabetes)
  • Re: no control, need help
    ... Any advice appreciated. ... > then, as well as a serving of popcorn occasionally, but mostly I eat ... >>care by my doctor, I have been able to keep my readings in check. ... This causes me to go back to eating in ways that aren't ...
    (alt.support.diabetes)