Hey Julio, Thanks for the example. I did pretty much the same thing by creating a component method to get the method names and comments of methods. I was hoping for a way to get the names of all available methods in other components - not just the ones I write.
On Thu, Jan 18, 2018 at 1:34 PM, Julio Carneiro via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Try this: > > - Add a new method to host, call it “ProxyMethodGetNames" and make it > ‘shared between host and components’, with the following code: > > C_Pointer($1;$arrNames) > > > > $arrNames:=$1 > > METHOD GET NAMES($arrNames->) > > > > - on your component, replace METHOD GET NAMES call by: > > ARRAY TEXT($aMethodNames;0) > > EXECUTE METHOD(“ProxyMethodGetNames”;*;->$aMethodNames) > > > That should do it… (edit at will) > > That technique, where you use a host method as proxy to obtain info not > available to components works great. It may fail with some special 4D > commands, but has worked for me with all those I tried. > Give it a try. > > julio > > > On Jan 18, 2018, at 6:22 PM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > Doesn't look like it but maybe there is something I'm not thinking of. > > > > Thanks! > > > > -- > > Kirk Brooks > > San Francisco, CA > > ======================= > > -- > 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: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** > -- Kirk Brooks San Francisco, CA ======================= *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ********************************************************************** 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:4d_tech-unsubscr...@lists.4d.com **********************************************************************