Hello TBTECH,

How do you eliminate blank lines in a macro when the data may or may not
exist in the address book?

,----- [ Example Macro ]
| %IF:%ABToNamePrefix<>"":"%ABToNamePrefix %ABToLastName":""%-
| %IF:%ABToCompany<>"":"%ABToCompany":""
| %IF:%ABToAddr<>"":"%ABToAddr":""
| %IF:%ABToBusAddr<>"":"%ABToBusAddr":""
| %IF:%ABToBusCity<>"":"%ABToBusCity%-%IF:%ABToBusState<>'':', 
%ABToBusState'%-%IF:'%ABToBusZIP'<>'':'  %ABToBusZIP':'':''":""
`-----

I can NOT use "%-" in the false condition because it must be at the end
of the line in order to continue the next line on the current line. So
if data exists, then for example you would have both street addresses on
the same line. Any ideals? TIA!

-- 
Best regards,

Greg Strong                     
TB! v2.03.47 on Windows XP Service Pack 1




________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to