Hello Peter,

On  Mon, 20 Nov 2000  at  20:00:42 GMT +0100 (which was 11:00 AM
where I live) witnesses say Peter Hampf typed:

> Hello,

JA>>  %TO=""%TO='"%ABofromNAME" <%ABofromEMAIL>'
> /.../
JA>>  Hi %ABofromNAMEPREFIX%ABofromLASTNAME

> afaics the %AB macros are returning empty strings, if there is no
> addressbook entry defined. Right?

That's correct.  I think this is good behaviour in most cases.
However, you point out:

> It would be useful to have a defined default for this case, for example:

>   Hi %ABofromFIRSTNAME[%OFROMFNAME]%ABofromLASTNAME[%OFROMLNAME]

> The part in the brackets would only be expanded, if the part left of the
> brackets returns an empty string... .

That would be nice.  The way you've suggested implies that the part in
brackets should be user definable, right?  If so, I agree.  There are
times when a null string makes more sense than anything else (eg. Name
Prefix or Memos, etc).  But the option would be very useful.

As it is right now, the %AB macros are only really useful in Address
Book templates, with any generality.  Your suggestion would make these
macros much more general, and useful in all the multitude of other
templates.


-- 
Thanks for writing,
 Januk Aggarwal
 See header for e-mail address

 Using The Bat! 1.48 Beta/7
 under Windows 98 4.10 Build 2222  A 

-- 
--------------------------------------------------------------
View the TBBETA archive at http://tbbeta.thebat.dutaint.com
To send a message to the list moderation team double-click HERE:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBBETA, double-click HERE:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------


You are subscribed as : archive@jab.org


Reply via email to