On Wednesday 11. June 2008, Leif B. Kristensen wrote: > p := BTRIM(tmp, '#')::INTEGER; > name := get_person_name(p); > str := REPLACE(str, tmp, name); I did some "folding" and replaced the above with str := REPLACE(str, tmp, get_person_name(BTRIM(tmp, '#')::INTEGER)); and got rid of two variables. -- Leif Biberg Kristensen | Registered Linux User #338009 http://solumslekt.org/ | Cruising with Gentoo/KDE My Jazz Jukebox: http://www.last.fm/user/leifbk/