evesely
6th June 2002, 18:59
I have a library that can be called from any number of scripts. I know that prog.name$ allows me to see the current session name, but is there some simple variable or function call that can tell me the name of the object I am currently executing? I might want to pass this to the library.
For example, if I make a custom version of the Maintain Items script and call my library that new script, is there a way in the script or in the library to know that I was running otiitm0101 or whatever I may have named it (e.g., otiitm0101900, otiitmxyzpdq, or whatever other name I conjured up)?
I know that I could use the session, the current package combination, and the VRC hierarchy to run through several tools tables and eventually find the script, but that seems like too much work. Also, I'd like to find a way that works for any user, which would leave out the ottdllvrcsearch tools which would require a user to briefly change to company 0.
Thoughts?
For example, if I make a custom version of the Maintain Items script and call my library that new script, is there a way in the script or in the library to know that I was running otiitm0101 or whatever I may have named it (e.g., otiitm0101900, otiitmxyzpdq, or whatever other name I conjured up)?
I know that I could use the session, the current package combination, and the VRC hierarchy to run through several tools tables and eventually find the script, but that seems like too much work. Also, I'd like to find a way that works for any user, which would leave out the ottdllvrcsearch tools which would require a user to briefly change to company 0.
Thoughts?