Since you don't want inheritance try
Class utility
{
Classmethod Export (cl as %String)
{
write "header"
S O=$zobjclassmethod(cl, "%New")
D O.XmlSchema
write "footer"
}
}
There should be a static call of this too, but I don't won't to guess and be
wrong.
"Thierry" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi.
>
> I would like to run a class method on a class where the class name is now
at
> runtime.
>
> I want in fact export the schema of a class giving his name in argument.
> Something like that :
>
> Class utility
> {
> Classmethod Export (cl as %String)
> {
> write "header"
> Do ##class(???cl???).XmlSchema
> write "footer"
> }
> }
>
> And I call it with that :
> Set cl =Do ##class( "Myclass").XmlSchema
>
> I don't want to create that function for all classes I want to print (or
> inherit)
>
> Thanks
>
> Thierry
>
>