I have following code:
I quer {
S class="de.hhla.frucht.email.gui.anhangquer.cls"
S ref=##class("de.hhla.frucht.email.gui.anhangquer").%New()
}
ELSE {
S class="de.hhla.frucht.email.gui.anhang.cls"
S ref=##class("de.hhla.frucht.email.gui.anhang").%New()
}
Is there any chance to use the scalar 'class' as parameter for the
class constructor, e.g.
S ref=##class(class).%New() ; that doesn't work
christian
...
Set ref = $zobjclassmethod(class,"%New")
...
should work.
See the docs for more information.
Hope this helps.
Michael Braam
Senior Sales Engineer
InterSystems GmbH
Hilpertstr. 20a
D-64295 Darmstadt
Tel.: +49 (0)6151 / 1747-0
Fax: +49 (0)6151 / 1747-11
Michae...@InterSystems.com
www.InterSystems.de
Geschäftsführer: Jörg Klingler, John Macheras, Stephen G. Baron
Eingetragen beim AG Darmstadt unter HRB 4966
-----Ursprüngliche Nachricht-----
Von: intersys...@googlegroups.com
[mailto:intersys...@googlegroups.com] Im Auftrag von wesselch
Gesendet: Dienstag, 16. Februar 2010 08:59
An: InterSystems: Zen Community
Betreff: [InterSystems-Zen] Dynamic class creation
Hello,
I have following code:
christian
--
You received this message because you are subscribed to the Google Groups
"InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to
InterSystems-Z...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions:
http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-cond
itions
Set ref = $system.OBJ.New(class)
regards
Michael Braam
Senior Sales Engineer
InterSystems GmbH
Hilpertstr. 20a
D-64295 Darmstadt
Tel.: +49 (0)6151 / 1747-0
Fax: +49 (0)6151 / 1747-11
Michae...@InterSystems.com
www.InterSystems.de
Geschäftsführer: Jörg Klingler, John Macheras, Stephen G. Baron
Eingetragen beim AG Darmstadt unter HRB 4966
-----Ursprüngliche Nachricht-----
Von: intersys...@googlegroups.com
[mailto:intersys...@googlegroups.com] Im Auftrag von wesselch
Gesendet: Dienstag, 16. Februar 2010 08:59
An: InterSystems: Zen Community
Betreff: [InterSystems-Zen] Dynamic class creation
Hello,
I have following code:
christian
--