Is it possible to pass parameters when get a property from a widget?

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Is it possible to pass parameters when get a property from a widget?

Post by andresdt » Tue Apr 06, 2021 5:06 pm

In liveCode Script we can work with the custom properties of the form.

Code: Select all

put the cProp [ pParam ] of me

Using getProp we can get the value of pParam.

Code: Select all

getProp cProp [ pParam ]
      answer pParam 
end cProp 
Now my question is.
Is it possible to do this in LiveCode Bilder?

PaulDaMacMan
Posts: 616
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Is it possible to pass parameters when get a property from a widget?

Post by PaulDaMacMan » Thu Apr 08, 2021 1:42 am

I would think you could do it the same way, if your parameters is a key that corresponds to an array in your widget. OnLoad and OnSave pass a properties array to/from the LC Script Engine.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

Post Reply

Return to “LiveCode Builder”