Changing array key text

Brian Milby brian at milby7.com
Mon Jun 24 15:37:57 EDT 2019


I’m pretty sure the PI deletes the old key and creates a new key with the existing value.

Thanks,
Brian
On Jun 24, 2019, 3:23 PM -0400, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>, wrote:
> I have a multi-dimensional array and sometimes I need to change the text
> of one of the array keys without destroying the rest of the array.
> Putting a different value into a key removes all the subkeys under it,
> so I wonder if there's a way to update the text of a key without
> re-creating the entire array again.
>
> The property inspector lets you do this when you change the name of an
> array key. Is there a quick trick for that?
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> 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