Galik, thanks a lot. it worked! The weird message was because the objects were destroyed inthe previous program. I changed it to a statement using 'new' and it worked.
Finally I can get on with my work. Your prompt replies are very much appreciated .