David,

What I occasionally do is use Execute Method and have two "identical"
project methods (other than the name).

$Method_t:="My_Method"
If (RunningInComponent)
  $Method_t:=$Method_t+"Comp"
else
  $Method_t:=$Method_t+"Host"
end if

That way I can test when running the component only, I can call the host
version from within the component easily but still have access to the
component version, and finally I can call either version from the host as
well.

Is that helpful?





Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart
<http://about.me/waynestewart>


On 18 April 2017 at 22:23, David Adams via 4D_Tech <[email protected]>
wrote:

> On Tue, Apr 18, 2017 at 10:16 PM, Wayne Stewart via 4D_Tech <
> [email protected]> wrote:
>
> > David,
> >
> > Why don't you get the component to just create the method in the host
> > before calling it? (Assuming it doesn't exist yet).
>
>
> Huh, I would never have thought of that. That won't help out in this
> particular case, but I'll try thinking about the idea in general in the
> next couple of days just to look at things from a different angle.
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
>
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to