Hi, for these concerns I always refresh my memory going to this vid:
InterSystems Webinar: Configuring a Web Server for IIS for Better Performance and Security
https://www.youtube.com/watch?v=luplow26i7c
Some key URL's you may find helpful too (find the newer version according to your IRIS version):
Ok so, to summarize the thread:
Requirements:
1.- Work with variable table names.
2.- Being able to 'see'/'use' them (i.e. the evenTotal count)
3.- Not having the variables loaded in memory after method execution.
In 'ObjectScript+.int' you can have all 3. In '.cls' you can only have 1 and 2, waiving point 3.
Options in '.cls' from better to worse in my opinion are:
a. The cleanest option I've seen is @Jose-Tomas Salvador version. This option still doesn't have the point 3 but you can kill the variables before leaving the method.
b. Before 'Jose Tomas version' my choice was adding the variables to public list, and trying to kill them before leaving the method. Although it breaks the not knowing the names thing.
c. Using percent variables (obscure, and also my colleages don't know well percent vars, so risky too)
d. Set ProcedureBlock=0 (worst choice in my opinion as it makes visible all variables)
Thank you very much for your help as I was a bit anxious with this thing thinking there was a better option and I was too clumsy to find it.
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![InterSystems Researcher](https://community.intersystems.com/sites/default/files/badges/researcher.png)
![Master of Answers](https://community.intersystems.com/sites/default/files/badges/master_of_answers.png)
![Challenge Starter](https://community.intersystems.com/sites/default/files/badges/295959213-b83dd91a-663f-4f07-8e0e-e3287b7c2309_0.png)
![Great Start](https://community.intersystems.com/sites/default/files/badges/great_start.png)
If you work with ObjectScript, you can use the bracketed notation to access directly to a global in another namespace.
Something like:
zwrite ^["myOtherNamespace"]person(13)
Another example in the docs:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
Sorry, I didn't find the main page where this is explained.Edit: I found it: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...