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:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Fri, 15 Jan 1999 12:23:11 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Michael Hensley writes:

>   IF POS(HPACCOUNT,"FIRST,LNL,FPA,LNP") <> 0

And Glenn Cole followed 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.

then Michael again:

> 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.)

Personally, I like the leading delim as well, e.g., if someone is doing
work for the national parks and has account NP ;) or is doing something
for Pennsylvania with account PA (somehow forgetting to use BSEPA ;) .

(I was concerned about the use of "/" as a delimiter, but the feature
that hides "passwords" on $stdlists is smart enough to see that with
more than a single slash, the string can't be a password.)

--Glenn

.......................................................................

Item Subject: cc:Mail Text

ATOM RSS1 RSS2