I finally landed on the following that works because the problem was NOT that it was outputing a blank but rather the source was actually more than I thought it was... the standard format is
SMTP{name@place.com}name@place.com I just wasn't seeing the full output...
sooooo
if Length(em) > 0 then local numbervar iBrace := instr(em, '}');
if iBrace > 0 then em := mid(em, iBrace + 1);
em
thanks...
Originally posted by lockwellewell, what if you try:
local numbervar iBrace := instr(em, '}');
if iBrace > 0 then
em := left(em, iBrace - 1) + mid(em, iBrace + 1);
em
it's not as simple/clean, but if it works.
All the comes to mind is that Crystal uses {} for many things and perhaps replacing it messes up things behind the scenes, since replace will replace all occurrances, not just the first one.
It's a thought, but I have absolutely no evidence/knowledge that this is occurring.
HTH