I am still trying to figure out why I'd even care if FUNCNAME$ was a sub or function or method
No reason you could not set up something like ..
Code:
FUNCTION | SUB foo... LOCAL dProcTypeName AS STRING dProcTypeName = " FUNCTION|SUB|METHOD|PROPERTY " + FUNCNAME$ .... code here .. oops need error CALL FooError (dProcTypeName, other params) ...
That is, any procedure receiving FUNCNAME$ would be able to distinguish the "source type" in its own code.
MCM
Leave a comment: