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