getProp and passing values

Bob Sneidar bobsneidar at iotecdigital.com
Tue May 3 18:12:24 EDT 2022


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 <use-livecode at lists.runrev.com> 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
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list