>>>Thank you, Vladimir. Your approach will work.
>>
>>The messagebox has the wrong message, but I also don't see a better way. Probably search inside the project files?
>
>The approach Vladimir suggested works.
Yes, but this is rather expensive approach. Who knows what do you have in the function? What if you completely change environment settings or do something else of this sort (say, zap bunch of important tables)?
If it's not broken, fix it until it is.
My Blog