Point taken but I am sure you get the gist ...
What I am asking for is advice about general structure and I expect variable scope to boot.
Obviously I will need to get the syntax correct to do anything but right now I don't actually know what what to attempt to build, never mind exactly how exactly to implement it.
Thanks
Al