VALID-OBJECT( object-reference )
|
USING acme.myObjs.*.
USING acme.myObjs.Common.*. USING acme.myObjs.Interfaces.*. CLASS acme.myObjs.Common.HelperClass: DEFINE PRIVATE VARIABLE rCustObj AS CLASS CustObj NO-UNDO. DEFINE PRIVATE VARIABLE rMsg AS CLASS MsgObj NO-UNDO. ... CONSTRUCTOR PUBLIC HelperClass ( ): rMsg = NEW MsgObj ("acme.myObjs.Common.HelperClass"). END CONSTRUCTOR. ... METHOD PUBLIC VOID ListNames (INPUT-OUTPUT prCustObj AS CLASS CustObj): ... rCustObj = prCustObj. END METHOD. METHOD PUBLIC VOID ReportOutput (OUTPUT prInterface AS CLASS IBusObj): /* Send the PRIVATE CustObj instance back to be printed */ IF VALID-OBJECT(rCustObj) THEN prInterface = rCustObj. ELSE rMsg:Alert("Not a valid object"). END METHOD. ... END CLASS. |