Page 1 of 1

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

Posted: Tue Apr 06, 2021 5:06 pm
by andresdt
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?

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

Posted: Thu Apr 08, 2021 1:42 am
by PaulDaMacMan
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.