object-reference:data-member-or-property-name
|
USING acme.myObjs.*.
USING acme.myObjs.Common.*. USING acme.myObjs.Interfaces.*. CLASS acme.myObjs.CustObj INHERITS CommonObj IMPLEMENTS IBusObj: ... DEFINE PRIVATE VARIABLE rCreditObj AS CLASS CreditObj NO-UNDO. DEFINE PRIVATE VARIABLE rMsg AS CLASS MsgObj NO-UNDO. CONSTRUCTOR PUBLIC CustObj ( ): rCreditObj = NEW CreditObj ( ). ... rMsg = MessageHandler("acme.myObjs.CustObj"). END CONSTRUCTOR. ... METHOD PUBLIC VOID CheckCredit ( ): IF VALID-OBJECT(rCreditObj) THEN DO: FOR EACH ttCustomer: ... /* Invokes the CustCreditLimit property GET accessor */ rMsg:InfoMsg(ttCustomer.Name + " is in good standing." + " Credit Limit has been increased to " + STRING(rCreditObj:CustCreditLimit)). CATCH e AS Progress.Lang.AppError: IF e:ReturnValue = "Over Limit" THEN /* Invokes the CustCreditLimit property GET accessor */ rMsg:Alert (ttCustomer.Name + " is on Credit Hold." + " Balance exceeds Credit Limit of " + STRING (rCreditObj:CustCreditLimit)). ELSE rMsg:Alert ("Customer not found"). END CATCH. END. /* FOR EACH */ END. ELSE rMsg:Alert ("Unable to check credit"). END METHOD. ... END CLASS. |