Palle Agermark [MSFT]
1/18/2006 1:32:00 PM
You must assign your class to the args object being passed to the form, when
you open the form.
It should look something like this on your calling class:
....
Args args = new Args();
FormRun FormRun;
;
args.caller(this);
formRun = classFactory.formRunClass(args);
formRun.init();
....
--
Best Regards,
Palle Agermark
This posting is provided "AS IS" with no warranties, and confers no rights.
"Fanatic" wrote:
> Hey, I'm calling a form from a class. How can I set the args.calller() object
> to the class. The class doesn't have a "this" object, or I can't get to it...
> In the form, I want to use the code
>
> if (classIdGet(element.args().caller()) == classNum(InventTransWMS_Register))
>
> But I can't get this class as a calling object