Written by

Question Kumaresh Ram · Sep 10, 2017

In which global cache class codes are storing in cache DB?

In which global cache class codes are storing in cache DB?

For example, Routine codes are storing in ^ROUTINE global.

situation: Need to read line by line and need to replace one string to another string in class files(.cls file) using programming.

Need to replace Property type in class files using programming i mean via programming to edit the class files

Comments

Eduard Lebedyuk · Sep 10, 2017

You can use %Dictionary package to modify classes.

For example you can open property which is an object of %Dictionary.PropertyDefinition, modify it and save. Recompile the class to see new class definition.

Here's an example of %Dictionary modification to create new method.

0
John Murray  Sep 11, 2017 to Eduard Lebedyuk

I agree with Eduard's recommendation. Avoid direct manipulation of the class dictionary storage structures, which is likely to give you pain in the future.

Unless you're hoping for a "better" answer, please set the big checkmark on the left of the title of Eduard's answer.

0
Robert Cemper  Sep 14, 2017 to John Murray

another disapointment.  
eventually a THANKS icon instead of the HOOK would help ?

0