• Advertisement
Sign in to follow this  

Retrieving the number of modules?

This topic is 4432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was looking at enumerating script variables and noticed that they require a module name. If I've got multiple registered modules, I want to be able to enumerate all variables over all modules. To do this I was hoping to implement a simple algorithm similar to how you do it for variables... except for 1 problem: There is not GetModuleCount() method on the script engine. So, another question would be, does passing 0 to GetGlobalVarCount return the number of variables for all modules?

Share this post


Link to post
Share on other sites
Advertisement
You should already know how many modules there are, and which ones they are since you're the one who created them.

Passing 0 as the module name is the same as passing "", which is just a module without an explicit name.

Regards,
Andreas

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement