>I have an application object set up with a method "setupmail".
>
>In "setupmail" I have the following code...
>
>public oSession
>public oMessage
>this.addobject("oSession","olecontrol","MSMAPI.mapisession")
>this.addobject("oMessage","olecontrol","MSMAPI.mapiMessages")
>
>When I run the prg that calls setupmail I get an error mesage saying "object name is invalid".
>Any tips?
I've never tried adding them to a container...
Why not just use CREATEOBJECT("MSMAPI.MAPISession") ?
Erik Moore
Clientelligence