At 18:52 2009-09-15, Anthony J. Gundrum <[email protected]> wrote:
>I would surround 38*7 with parenthesis as such
>
>dDate= CTOD([01/01/2009])+(38*7)
>
>This guarantees 38*7 is calculated first and makes the code more readable.

      Well, no.  The ctod() could well be calculated first.

      If you are referring to precedence, then the multiplication 
will be done before the addition regardless of whether the brackets are there.

      Extraneous brackets make the code LESS readable.

[snip]

Sincerely,

Gene Wirchenko



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to