Thanks, now its perfectly clear. I have the function set up which is why it worked before when I had #define in there. Its strange why that didnt throw an error message though. Everything seems to be working great now, cheers.
_________________________
previously know as bigredron