Thank you clearing that up for me Mr.Heins. I really appreciate it.
now that the code makes sense it wont trigger the alert. maybe im not using the correct Conditon?
I am using, "number of rows in the designed query is not less than 1"
now that the code makes sense it wont trigger the alert. maybe im not using the correct Conditon?
I am using, "number of rows in the designed query is not less than 1"
--- In vantage@yahoogroups.com, Christopher Heins <cheins@...> wrote:
>
> Be careful with your AND's & OR's ... Progress gives AND higher precedence that OR (See Table 36 in V10 ABL Reference.)
>
> Rob's parentheses straighten that out but they appeared very late in this "thread".
>
> As originally written you would be getting ANY of the rowmod "A" (regardless of date) but only the "U" rowmod records within the date constraint.
>
> You might try:
>
> FOR EACH ttPOHeader NO-LOCK
> WHERE (ttPOHeader.RowMod = 'A' OR ttPOHeader.RowMod = 'U')
> AND ABSOLUTE(ttPOHeader.OrderDate - TODAY) > 10:
> /* show date out of range error? */
> END.
>
> I usually eliminate the OR with WHERE CAN-DO("A,U", ttPoHeader.RowMod) AND ...
>
> Minor stylistic point - although ABL permits a period at the end of a FOR EACH statement, I like to use ":" on block header statements such as DO, FOR, REPEAT, PROCEDURE etc. Old habits die hard!
>
> Happy Thanksgiving,
>
> Christopher Heins
> Sr. Progress Programmer/Analyst
> [cid:image001.png@...]
> Desk# 973-560-5370
> Cell# 908-256-3662
> Skype: cheins.nj
> cheins@...<mailto:cheins@...>
>
>
> ________________________________
> NOT INTENDED AS A SUBSTITUTE FOR A WRITING
> NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY BE A PART, OR IN ANY ATTACHMENTS THERETO, SHALL CONSTITUTE A BINDING CONTRACT, OR ANY CONTRACTUAL OBLIGATION BY PNY, OR ANY INTENT TO ENTER INTO ANY BINDING OBLIGATIONS, NOTWITHSTANDING ANY ENACTMENT OF THE UNIFORM ELECTRONIC TRANSACTIONS ACT, THE FEDERAL E-SIGN ACT, OR ANY OTHER STATE OR FEDERAL LAW OF SIMILAR SUBSTANCE OR EFFECT. THIS EMAIL MESSAGE, ITS CONTENTS AND ATTACHMENTS ARE NOT INTENDED TO REPRESENT AN OFFER OR ACCEPTANCE OF AN OFFER TO ENTER INTO A CONTRACT. NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY BE A PART, OR IN ANY ATTACHMENTS THERETO SHALL ALTER THIS DISCLAIMER.
>
> This e-mail message from PNY Technologies, Inc. is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
>
>
> [Non-text portions of this message have been removed]
>