please help...


Posted by Bjoern Rebesky on November 14, 2000 at 18:33:58:

Hello all!

I was just wondering if anyone could help me with my problem:
I stored the name of an object in a string...
objectname := (Sender As TShape).Name

I saved the name in a string cause I want to access this object later in a different procedure where I can't use the sender to figure out which object I want to use. I need to access the object I just stored the name in objectname. The general problem is that I don't know the objects name cause it is generated at runtime and the user is able to alter the name during runtime. So I always use the sender parameter to figure out e.g. on which object the user just right-clicked. But in my procedure I can't use the sender parameter cause it is the wrong sender - I want to manipulate a different object...I hope you understand what I mean...

I hope someone can help me...
Thanx a lot...
Bjoern



Related Articles and Replies: