Thanks grudzio.

I will try it out as soon as possible.

Btw, my version of pascal (BDS 2005/2006) has a tan function included in math.pas.

Greetings,
Dirk