Reading method text
Alan Schmidt
alan at goconnected.com
Tue May 18 17:39:08 UTC 2021
Omnis support gave me a nice idea of utilizing the Find and Replace via code to locate exactly what I'm looking for.
Didn't know that was possible. Cool.
Thank you all for your suggestions.
-Alan
On 5/18/21, 1:57 AM, "omnisdev-en on behalf of Phil (OmnisList) via omnisdev-en" <omnisdev-en-bounces at lists.omnis-dev.com on behalf of omnisdev-en at lists.omnis-dev.com> wrote:
Hi Alan,
A method is generally available at any level from a class down to
objects within a class, so yes, you would have to recursively iterate
down into them to get to all methods in an application.
Also note, as no one else mentioned it, you can also get each method
line separately... look in $methodlines
Use notation inspector, this will show you quickly what is available,
might help you know what is there.
regards
Phil Potter
Based in Chester in the UK.
On 18/05/2021 01:00, Alan Schmidt wrote:
> Yes, but methodtext is still only available for named methods- not at the class level right?
>
> That's really what I was trying to ask.
>
> -Alan
>
>
> On 5/17/21, 3:42 PM, "omnisdev-en on behalf of Doug Easterbrook" <omnisdev-en-bounces at lists.omnis-dev.com on behalf of doug at artsman.com> wrote:
>
> hi Alan.
>
> sure.. get the names of the classes…. then iterate the classes to get the method text.
>
>
>
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug at artsman.com
> http://www.artsman.com
> Phone (403) 650-1978
>
> > On May 17, 2021, at 3:14 PM, Alan Schmidt <alan at GOCONNECTED.COM> wrote:
> >
> > Hi Scotte,
> >
> > Is there an easy way to dump all method lines in the class into a var or must it be done by specific method only?
> >
> > Really doesn't matter... only a few more lines of code.
> >
> > Thanks for pointing me in the right direction...
> >
> > -Alan
> >
> >
> > On 5/17/21, 12:40 PM, "omnisdev-en on behalf of Scotte Meredith" <omnisdev-en-bounces at lists.omnis-dev.com on behalf of spomacguy at gmail.com> wrote:
> >
> > Try this:
> >
> > Calculate #S1 as $clib.$classes.MyClass.$methods.MyMethodName.$methodtext
> >
> >
> >> On May 17, 2021, at 12:16 PM, Alan Schmidt <alan at goconnected.com> wrote:
> >>
> >> Can someone please post an example of reading method text out of a class?
> >>
> >>
> >>
> >> Thank you!
> >>
> >>
> >>
> >> -Alan
> >>
> >> _______
> >
> >
> >
> > Scotte Meredith
> > spomacguy at gmail.com
> > 509/998-0991
> >
> >
> >
> >
> > _____________________________________________________________
> > Manage your list subscriptions at http://lists.omnis-dev.com
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> >
> >
> >
> > _____________________________________________________________
> > Manage your list subscriptions at http://lists.omnis-dev.com
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list