Subject: | |
From: | |
Reply To: | |
Date: | Fri, 15 Jan 1999 12:23:11 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|