NVM I figured it out (again). Given that lGridDataA is a script local
containing an array of all the datagrid arrays: The getProp handler needs to be
written like this:
getProp maingriddata [pKey]
if pKey is not empty then
return lGridDataA [pKey]
else
return lGridDataA
end if
end maingridData
Bob S
> On May 3, 2022, at 15:00 , Bob Sneidar via use-livecode
> <[email protected]> wrote:
>
> Hi all.
>
> I seem to recall the ability to define a virtual custom property in such a
> way that I could for example code:
>
> put the maingriddata ["customers"] of card "Main" into tCustomersA
>
> As is I cannot pass args to a getprop handler. I can only pass args to a
> setProp handler.
>
> Any ideas? I checked the dictionary and lessons. Not a peep.
>
> Bob S
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode