Hi Greg, @10-Jun-2003, 14:46-0500 (20:46 UK time) Greg Strong [GS] in mid:[EMAIL PROTECTED] said to TBBETA:
GS> Any ideals why?
Yes. The new version is wrong and I corrected it myself last night:
GS> I'm NO RegEx expert. All of my QTs and templates are the result
GS> of help from RegEx experts. I'm using Beta/10. From Beta/7
GS> forward has caused problems with my QTs.
This is not a RegEx issue, it's a macro problem.
%IF:"%QINCLUDE(ISBAT)"<>"":"%QUOTESTYLE(%Qinclude(Initials))"%-
... is what's wrong.
This one works.
,------/ My standard 'q' QT \------
| %IF:"%QINCLUDE(ISBAT)"<>"":"%QUOTESTYLE='=%Qinclude(Initials)'"%-
| %QINCLUDE(w)
`-----8<-----
You could probably also say:
,------/ A version using brackets \------
| %IF:"%QINCLUDE(ISBAT)"<>"":"%QUOTESTYLE('=%Qinclude(Initials)')"%-
| %QINCLUDE(w)
`-----8<-----
Without the '=' sign, it is unreliable. The single quotes are needed
too.
,------/ Make use of variables - (because they're there) \------
| %_inits="%Qinclude(Initials)"%-
| %IF:"%QINCLUDE(ISBAT)"<>"":"%QUOTESTYLE('=%_inits')"%-
| %QINCLUDE(w)
`-----8<-----
--
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/10 on Windows XP 5.1.2600 Service Pack 1
pgp00000.pgp
Description: PGP signature
________________________________________________________ Current beta is 1.63b10 | "Using TBBETA" information: http://www.silverstones.com/thebat/TBUDLInfo.html

