On Fri, 11 Oct 2002 07:02:47 +0200 Eddie Castelli <[EMAIL PROTECTED]> wrote:
>>> I need to use the Memo field from the AB. There I intend to put >>> something like group="public". If I write to this person I want TB! >>> to include this in my mailing: e.g. 'your group is (the Variable) >>> group'. >> Yes. Use AB Macro: %ABToMemo > So how does it look combining %ABToMemo 'and' the Variable I've set in > the Memo field itself (e.g. Group="public")? > > BTW - I have in this Memo field also other Variables such as > lang="en". The Bat! _cannot_ evaluate custom variables. You _can't_ set 'own variables' in The Bat!, in fact it does not even provide variables itself, only 'functions that might print out the one or the other variable value', called 'macros'. So the only thing you can do is something like (or similar to): %SETPATTREGEXP='(?is)^group=(.*?)$'%REGEXPMATCH='%ABToMemo' to insert the groups name. %UCFIRST="%SETPATTREGEXP='(?is)^group=(.*?)$'%REGEXPMATCH='%ABToMemo'" for inserting it with capital first letter, regardless how it's written in memo field and %LANG="%SETPATTREGEXP='(?is)^lang=(.*?)$'%REGEXPMATCH='%ABToMemo'" to set spelling language automatically. -- Peter ________________________________________________ Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html