Thank you kindly for both of your replies. It looks like SenderGhost's solution will be easy to implement for me in the current situation.
I guess I should think about finally learning some 'real' C++ and U++ so I can solve this kind of situations for myself. Until I do I might have more of these simple questions, but it seems this forum is very kind to newbies