FowardMessage() functions pretty much like the FORWARD CONTINUE instruction. You only need to specify the bits that you wish to override from the method call context you're in. Anything you don't will to override, pass NULLOBJECT (or NULL in the case of the message name). It sounds like you have things pretty much sorted out.
Rick On Sun, Dec 21, 2008 at 7:29 PM, Mark Miesfeld <[email protected]> wrote: > On Sun, Dec 21, 2008 at 3:07 PM, Mark Miesfeld <[email protected]> wrote: >> Hi Rick >> >> When you get a chance, could you provide a little information on how >> to use the ForwardMessage() API. > > Following up on myself, I did get the ForwardMessage() API to do > exactly what I want. This code: > > ::method getListControl unguarded external "LIBRARY oodialog > advCtrl_getListControl" > > > RexxMethod2(RexxObjectPtr, advCtrl_getListControl, ARGLIST, args, OSELF, self) > { > contex->ArrayPut(args, c->String("LC"), 3); > > RexxObjectPtr result = c->ForwardMessage(NULLOBJECT, "GetControl", > NULLOBJECT, args); > > ... > > return result; > } > > Produces the exact same result as: > > ::method GetListControl unguarded > arr = Arg(1,"A") > arr[3] = "LC" > forward message "GetControl" Arguments (arr) continue > listControl = result > ... > return listControl > > That's way cool. > > It still wouldn't hurt to have a little more info on the API. <grin> > > -- > Mark Miesfeld > > ------------------------------------------------------------------------------ > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > ------------------------------------------------------------------------------ _______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
