J
jankeir
Guest
I have no idea what you are doing wrong, but this works in 11.3 both from a constructor and a method in a I can instantiate b and run a method in a from it's constructor. I tested it because we had this-object bugs in the past (but that was in 10.2B): class a: constructor a (): new b(this-object, "from constructor"). end constructor. method public void test(input icMessage as character ): message icMessage view-as alert-box info buttons ok. end method. method public void newbFromMethod(): new b(this-object, "from method"). end method. end class. class b: constructor b(input oa as a, input icMessage as character): oa:test(icMessage). end constructor. end class. define variable oa as a no-undo. oa = new a(). oa:newbFromMethod().
Continue reading...
Continue reading...