qe3ee wrote:

q>  A  small  question:  Is there a VAT field in The Bat! v3.5
q>  Addressbook

<snip>

q>  OR is there a smart way to create new formfields in the addressbook?

You could always use the address book memo field.  If you need to
access the value programmatically, the following QT might help.  I
*think* it uses a syntax available in v2, but I'm not 100% sure.  This
QT is a generalization of a technique I saw used by Robin Anson.  It
allows you to specify INI file like key/value pairs in the AB memo
field.  In your case, you might have a line like:

VAT=yes

It can occur anywhere in the field - I put them at the end.  The QT to
access it is as follows (call it ab_memo_item):

%Rem(" Usage: %QInclude(ab_memo_item,<item_name>,<default_value>)")%-
%-
%SetPattRegExp("(?im)^%_1\s*=\s*(.*?)\s*$")%-
%RegExpBlindMatch(%ABToMemo)%-
%_ABI_Value=%SubPatt(1)%-
%If:"%_ABI_Value"<>""%-
:"%_ABI_Value"%-
:"%_2"%-

To get the value, you could use something like:

%QInclude(ab_memo_item,"VAT","")

or

%QInclude(ab_memo_item,"VAT","no")

As written, the QT uses the AB entry for the To field of new messages
or replies.  You might have to change the ABToMemo to something else
to use it in another context.

I use this technique to customize my signature for certain
individuals.  My "Friends" AB group message templates contain the
line:

%QInclude(%QInclude(ab_memo_item,"sig","default_sig"))%-

I have a QT called default_sig that contains my normal signature.  For
any individual I want to use a different signature for, I include a
line in the memo field of that person's AB entry that names a specific
signature QT, such as:

sig=tagline_sig

I hope this makes sense.

-- 
George

Using The Bat! 3.60.02 Forerunner (Beta) on Windows XP Pro, Service Pack 2.


________________________________________________
Current version is 3.51.10 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to