Where did you find the example you tried? Curious what might be wrong with it...[/QUOTE]
Thanks for this code and I will give it a whirl later! The program I typed out came from
https://amigacoding.com in the GadTools section there is some example code which I tried but it came up with a 'Constant Error' or 'Constant Mismatch' error or something like that.
Probably me typing it out wrong, but I couldn't get it to work unfortunately.
Cheers!