Thanks!  
the example was typed in email so it was just something off the top of 
my head.

What about access to 'special' sets UserSet and LocalSet?
any idea?

Chip
On Fri, 29 Jun 2018 15:49:15 -0300, Julio Carneiro via 4D_Tech wrote:
> 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 
>> <4d_tech@lists.4d.com> 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:4d_tech-unsubscr...@lists.4d.com
>> **********************************************************************
> 
> --
> Julio Carneiro
> jjfo...@gmail.com
> 
> 
> 
> **********************************************************************
> 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:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
---------------
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to