Chip,

Your specific example would not work, because “My_execute” would not have 
access to the calling method’s local variables. That is not a component issue, 
that would not work even if My_execute were a local method :-(

Now to answer your question, yes a Component method can issue an Execute 
Formula and reference a host method. All you need is to ensure your host method 
is set as “Shared between host and components”.

hth

> On Jun 29, 2018, at 12:35 PM, Chip Scheide via 4D_Tech <[email protected]> 
> wrote:
> 
> I have some code I would like to put into a component.. but...
> I am uncertain how it will interact with the host.
> 
> The method, uses Execute Formula. 
> The method takes a text parameter which is a bit of code to execute.
> In it's current use (in the host) the text is most often a an apply to 
> selection, which references a host method.
> 
> ex: My_execute("Apply to selection($table_ptr->;my_apply_Code)")
> My_Execute
> .
> .
> .
> Execute Formula($1)
> 
> is code similar to this functional in the context of execution in a 
> component?
> especially, where the code to be executed by Execute formula is an 
> apply to selection and referencing a host method.
> 
> I hope my question is clear enough
> 
> Thanks
> Chip
> ---------------
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

--
Julio Carneiro
[email protected]



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to