Objectscript to list source of a class
Hi,
I want to list the source if a class in an 'iris session'.
I know I can get a list of all classes in a namespace:
iris session <session> -U "%SYS"
DO $SYSTEM.OBJ.ShowClasses()
===
Is there a similar sinmple command to get the source of a class?
Discussion (2)2
Comments
You did not specify the IRIS version, so I assume you are using the latest version.
You can export the source of a class to a file:
Do $system.OBJ.ExportUDL("My.Class.Name.cls","/full/path/My.Class.Name.cls")
Thanks.
Works like a dream!