Caché ObjectScript Reference
$CLASSMETHOD
|
|
$CLASSMETHOD(classname, methodname, arg1, arg2, arg3, ... )
|
|
An expression which evaluates to a string. The value of the string must match the name of an existing class method in the class identified by |
|
SET classname = "%Dictionary.ClassDefinition" SET classmethodname = "NormalizeClassname" SET singleargument = "%String" WRITE $CLASSMETHOD(classname,classmethodname,singleargument),!
WRITE $CLASSMETHOD("%Library.Persistent","%PackageName"),! WRITE $CLASSMETHOD("%Library.Persistent","%ClassName")
SET q1="SELECT Age,Name FROM Sample.Person " SET q2="WHERE Age > ? AND Age < ? " SET q3="ORDER by Age" SET myquery=q1_q2_q3 SET rset=$CLASSMETHOD("%SQL.Statement","%ExecDirect",,myquery,12,20) DO rset.%Display() WRITE !,"Teenagers in Sample.Person"
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
|
Content for this page loaded from RCOS_fclassmethod.xml on 2019-02-16 00:01:02
|