Hi Januk,

On Wednesday, July 3, 2002 01:14, which was 09:14 where I am, Januk Aggarwal JA wrote;

JA> So let's analyze QuotesInit and hopefully that will make it obvious
JA> what you need to change.

Ummm, not obvious enough for me :-(

JA> There are five crucial parts to the construction used in QuotesInit.
JA> 1. %QUOTESTYLE
JA> 2. %IF
JA>    a) Test Condition
JA>    b) True Action
JA>    c) False Action

I follow that...

JA> %IF has the construction:
JA> %IF:"string1"<>"string2":"true template":"false template"
JA> or more symbolically
JA> %IF : condition : true : false

I follow that also.........

JA> I hope that gives you some clues on how to modify the above to do what
JA> you need.  If not, plaese ask.

But, I still can't get it. I've read through this mail a few times now, but to no 
avail. Sorry. I'm a bit stressed aswell, as we're
about to move house and lots to do, so I'm not 100% focused :-(

I really want to get my head around this, so I'll show you my templates again and if 
you would be so kind as to give me the answer,
I'll piece it together. I sometimes find it easier working backwards from the result. 
One of the hardest things to get my head around
is the delimiter, as it seems a bit random :-)

>Main Template
On %QINCLUDE="Date" %QINCLUDE="Time", which was %QINCLUDE="OtherDate"' where I am, 
%OFROMFNAME %OFROMLNAME %QINCLUDE='Initials' wrote;
%QINCLUDE="QuotesInit"
%QUOTES

>Initials
%SETPATTREGEXP="(?is)(\w).*?([-_=@\.\s]+(\w).*?)?([-_=@\.\s]+(\w).*?)?$"%-
%REGEXPBLINDMATCH="%QINCLUDE=""Full Name"""%-
%SUBPATT="1"%SUBPATT="3"%SUBPATT="5"%-

>QuotesInit
%QUOTESTYLE='%-
%IF:"%-
%SETPATTREGEXP=""(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$""%-
%REGEXPBLINDMATCH=""%HEADERS""%-
%SUBPATT=""1"""<>"":"=%QINCLUDE=""Initials""":"None"'

Now here's the one I need to work on. Would I be correct in guessing that when I have 
a working QT, I'd replace %QINCLUDE='Initials'
from the main template to %QINCLUDE='InitSelect'?
>InitSelect
%QUOTESTYLE='%-
%IF:"%-
%SETPATTREGEXP=""(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$""%-
%REGEXPBLINDMATCH=""%HEADERS""%-
%SUBPATT=""1"""<>"":"=%QINCLUDE=""Initials""":"None"'

I've had a few plays, but.... I'm sorry, I must be testing your patience. I'm afraid 
to ask for assistance now and to just give up.

I hope you can put me out of my misery and I'll try to work it out and explain it back 
to you to see if I've got the method right.

Thanks,

Chris. (Chris wanders of holding his head in disappointment and shame)


______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to