HP3000-L Archives

March 2005, Week 4

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:
"Vance, Jeff H (Cupertino)" <[log in to unmask]>
Reply To:
Vance, Jeff H (Cupertino)
Date:
Wed, 23 Mar 2005 11:47:01 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Hi all,

Yesterday I replied:

> You could always append "address;" then remove the final semicolon 
> when you are done via:
>    setvar list rht(list,-2)

This is wrong and I apologize (thanks Paul!) I was using RHT in my head
as WORD...
Anyway, hopefully some of you did a HELP RHT and noticed it does accept
a negative number for the 2nd parm.

If you construct the list in the manner I showed above, "name; name; ...
name;" then to remove the last ";" you can do:
   setvar list lft(list,len(list)-1)

Or, you could create the list as: ";name ;name ;name ;name" and remove
the leading "; " by
   setvar list rht(list,-3)

 Jeff

> > I'm cobbling together a command file to assemble a list of email 
> > recipients from a lookup file, using passed parms for a one-to-many 
> > match with addresses, so I want the result to be of the form:
> > [log in to unmask]; [log in to unmask]; [log in to unmask] I'll start off with an

> > empty list. I'll add the first address. If I then have a second 
> > address, I want to add the semi-colon and space. But I cannot have a

> > semi-colon after the last address.
> > And while there is more than one way to skin this cat, I'm wondering

> > what is the most efficient, most elegant way?
> > Adding the semicolon and space after each address will not work, 
> > since the last address cannot have it. Prefixing each address will 
> > not work, since I cannot have one before the first address.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2