$O - makelist of properties or methods

Ben Butler 760.f563 at gmail.com
Sun Jun 14 16:58:59 EDT 2020


Hi Das,

Thanks for the pointers and kind welcome. It has been more than a while
since I was last here (O7.3 to $O6.01). Been doing ISP stuff and Devops
since. Am back to merge what I have learnt in rest / containers / cloud /
Linux land to work with Omnis dev in $O10.

Thanks again.

Ben

On Sun, 14 Jun 2020, 21:30 Das Goravani, <das at goravani.com> wrote:

>
> Methods are put into a list in the following syntax:
>
> Do $[cvClassType]s.[cvClassName].$methods.$makelist($ref.$name) Returns #L2
>
>
> On that example I have a variable cvClassName which is like window,
> report, code, and I put an s on the end because it is $windows, $reports,
> etc..
>
> Then I have class name.. then $methods.. then $makelist.. and then what
> things you want.. $ref stands for the reference string up to that point..
> it’s what you named
>
> $[cvClassType]s.[cvClassName].$methods
>
> Is the ref.. $ref.. stands for this string
>
> $name stands for the name of the method.. you are saying “I want the
> names”… there are other things you could ask for, but immediately I’m not
> remembering what you can catch for methods other than the name..
>
> Then once you have those you zero in on one by extending the string…
>
> $[cvClassType]s.[cvClassName].$methods.(name or number of method I dont
> remember which works or if there even is a number).$methodlines returns a
> list if you say $makelist of the method lines.. which I think do have a
> number.. and using that you can ref a line and change it.. read it.. parse
> it..
>
> Do
> $[cvClassType]s.[cvClassName].$objs.[cvMethodName].$objs.[cvSubObjName].$methods.//$event//.$methodlines.$makelist($ref.$name)
> Returns #L3
>
>
> The above uses special notation to reference the $event method and you use
> the same for $construct
>
> Hope this has helped.. I dont have code for $properties or I’d provide it
>
> Haven’t seen you before that I remember so welcome aboard … use this list
> as frequently as you like.. we’re here to help
>
> Some of us work on Sunday.. I’ve gotten good help on Sunday
>
> I extend to you personal help if you write to me.. I dont mind.. though
> I’d use the list as you get fabulous different ways of doing things..
>
> I’m an intermediate developer.. I’ve gotten a LOT from this list so I try
> to give back but there are people on here way better than me who answer
> often
>
> Peace out,
>
> Das Goravani
>
>
>
> > On Jun 14, 2020, at 6:26 AM, Ben Butler <760.f563 at gmail.com> wrote:
> >
> > Hi,
> >
> > I am trying to do something like:
> >
> > Do vMyItemRef.$makelist(kProperties) Returns vPropertiesList
> > Do vMyItemRef.$makelist(kMethods) Returns vMethodsList
> >
> > Although the above is clearly made up nonsense.  I am trying to be able
> to
> > programatically get a list of all methods or all properties of a specific
> > element whether by item reference or other.  I must be missing something
> as
> > the dev UI is able to do this - I effectively want to be able to do the
> > same thing for debugging and testing purposes so I can monitor the
> > properties of objects / dump values to log files.
> >
> > Thanks In Advance
> >
> > Ben
> > _____________________________________________________________
> > 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