Avrigus #1 Awesome mate, that worked like a charm. my original code worked after I encapsulated the t: (t). Thank you very much for you help, it is a nice and elegant solution :-)