How Come?

Walker, Chris ChrisWalker@tateandlyle.com
Wed, 9 Dec 1998 09:21:44 -0000


It's a weakness of the parser - IIRC the problem occurs when the first term
in the expression is a function.

I am old enough to remember a time when this sort of problem was common,
usually in the built-in Basics of early home computers.  I suppose Cognos
preserve it for old time's sake.

Chris Walker
Tate and Lyle
London

	-----Original Message-----
	From:	Terry Pickering [SMTP:pickering@myself.com]
	Sent:	Tuesday, December 08, 1998 9:25 PM
	To:	powerh-l@lists.swau.edu
	Subject:	How Come?

	I know this has probably been explained before but....... 

	Can someone explain in QUICK the difference in the following two
syntax examples, and which is the "better" way to code. 


	IF FIELD-AMT = 0  
	   THEN .... 

	IF 0 = FIELD-AMT 
	   THEN .... 

	The reason I'm asking, is because when I code, I normally use the
first method and it usually works just fine. But if I try to use the
following syntax, it doesn't work unless I put the field name on the right
of the equation. 

	IF FIELD-AMT - 10 = 0 
	   THEN .... 
	(does not work) 

	IF 0 = FIELD-AMT - 10 
	   THEN .... 
	(works just fine) 



	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
	Terry Pickering        Consultant Extraordinare 
	Monday and Friday        Tuesday - Thursday 
	Portland                 Eugene 
	(503) 245-7178           (541) 687-3416 
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ = = = = =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Subscribe:
"subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l This
list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.