Thanks for the help, I cant kink that code out though.

I'll keep looking though examples until I find somthing similar.

C++ would be helpful too.