S
sderrico
Guest
Hello Group! Could you please help me to understand a basis in OOABL? I attached an example. I created two methods, one with a parameter of type Progress.Lang.Object and another with System.Object. Curiosity 1) Is all data type derive from a base class in OOABL? If yes, which class? Curiosity 2) In my code, why I cannot pass a value, like 4, in both method as a parameter? Curiosity 3) In my code, why I can do o = i but I cannot use i as a parameter of the the same data type of o ? /* declaration */ DEFINE VARIABLE i AS INTEGER NO-UNDO INITIAL 4. DEFINE VARIABLE o AS System.Object NO-UNDO . /* initialization */ o = i . /* Success */ TestNet( o ). /* Error: Parameter 1 for METHOD TestPro is not compatible with its definition (12905) */ TestPro( i ). TestPro(4). /* Error: Parameter 1 for METHOD TestNet is not compatible with its definition (12905) */ TestNet(4). /* T E S T P R O */ METHOD STATIC PUBLIC VOID TestPro( INPUT p AS Progress.Lang.Object): MESSAGE p VIEW-AS ALERT-BOX. END METHOD. /* T E S T N E T */ METHOD STATIC PUBLIC VOID TestNet( INPUT p AS System.Object): MESSAGE p VIEW-AS ALERT-BOX. END METHOD. Thank you! Sebastien
Continue reading...
Continue reading...