I REALY like how you presented the problem - very nice.
i have had this problem too. i wanted to create an error trap (vfp6) which creates the 'on error' command itself upon instantiation, so it would would have to know what it's 'public' name is.
well, you could look at
AINSTANCE(a_Instance, THIS.NAME)
but i have had a few times where it didn't return the name. i havn't figgered out if it was just something in my testing or if it is a problem with the function.
i remember also there was a discussion here at UT a while back about the same issue. I think the person asking about it was David Frankenbach, but i am not sure.
if you find a better solution then AINSTANCE() would you let us know please?
hope this helps a bit.
>Hi, my name is... well, I don't know what my name really is. The little name tag on my toe says my name is bizDataManager, but I think that's the name of my parent. You see, I was born when a program did a CREATEOBJECT() from my parent class and out I popped. They all know what my name is, but I don't know. I went to the oODBCManager.RegisterName office to see if they knew my name but they wanted me to tell them what my name was. Not knowing any better I told them I was bizDataManager and they believed me. Well, when the oODBCManager office closed down for the day they were supposed to release me. But the name I gave him wasn't the right one so now here I am running around in CyberSpace without anyone I can talk to since I can't even tell them what my name is... Can you help me? Is there a way I can know what my real name is the next time I get born?
>
>Thanks!
>Son of bizDataManager