Hi, |
Re: adding attributes to a module Might look something like this:
Just about all my 300 or so DXL have this line of code: Module g_mCurr = current. For scripts that must run from an open module, I display and error and halt when g_mCurr is null. For scripts that must not run from an open module, I display an error and halt when g_mCurr is not null. In any case, I always know them original current module. Perhaps that variable should be g_mOriginal, but I'm too used to g_mCurr.
|
Re: adding attributes to a module
The create function will always create the new attribute definition in the current module, the [module|object] is a flag for whether the attribute is a module attribute or an object attribute. Or did I misunderstand your question? /Kristian |