HP3000-L Archives

January 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Michael D. Hensley" <[log in to unmask]>
Reply To:
Date:
Fri, 15 Jan 1999 12:03:06 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
> Michael Hensley writes:
>
> >   IF POS(HPACCOUNT,"FIRST,LNL,FPA,LNP") <> 0
>

And Glen Cole improved it with:

> Call me wacky, but my personal preference is slightly more complex:
>
>     if pos( "-"+HPACCOUNT+"-", "-FIRST-LNL-FPA-LNP-" ) <> 0
>
> Thus, an account name like "IRS" would no "accidentally" qualify.
> The change from "," to "-" is just to avoid comma-overload when
> visually examining the statement.

I agree!  I usually do use POS(HPACCOUNT+"/","FIRST/LNL/FPA/LNP/"); I don't
know why I didn't in my posting.  (You don't need the leading delimiter,
though; just the trailing one.  Unless you think it's more readable.)

---
Michael D. Hensley       | mailto:[log in to unmask]
Allegro Consultants Inc. | Visit scenic http://www.allegro.com
408/252-2330             | "Support Bill of Rights Enforcement"

ATOM RSS1 RSS2