CoreMemory
IS-IT--Management
Hi All,
If you have a custom class defined in a stored procedure in an open database, is there a way to force CREATEOBJECT or NEWOBJECT to find the class.
SP code:
----------------
Neither
OR
will find the class so it can be instantiated.
With NEWOBJECT what would you put in the cModule name to cause it to search the stored procedures for the class?
yet if I add a wrapper function to my stored procedure
It works fine when I use the wrapper which does the CREATEOBJECT from within the stored procedure.
Am I missing something obvious here?
TIA,
Tom
If you have a custom class defined in a stored procedure in an open database, is there a way to force CREATEOBJECT or NEWOBJECT to find the class.
SP code:
Code:
DEFINE CLASS myclass CUSTOM
PROCEDURE init
LPARAMETERS p1,p2
..
ENDDEFINE
----------------
Neither
Code:
omyclass=CREATEOBJECT('myclass',p1,p2)
OR
Code:
omyclass=NEWOBJECT('myclass','','',p1,p2)
With NEWOBJECT what would you put in the cModule name to cause it to search the stored procedures for the class?
yet if I add a wrapper function to my stored procedure
Code:
FUNCTION DoMyclass(p1,p2)
omyclass=CREATEOBJECT('myclass',p1,p2)
return omyclass
ENDFUNC
DEFINE CLASS myclass CUSTOM
PROCEDURE init
LPARAMETERS p1,p2
..
ENDDEFINE
Am I missing something obvious here?
TIA,
Tom