Changing array key text

J. Landman Gay jacque at hyperactivesw.com
Mon Jun 24 15:53:05 EDT 2019


Thanks, I hadn't thought of just extracting a chunk of the array. I 
should have.

On 6/24/19 2:37 PM, Brian Milby via use-livecode wrote:
> 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
> _______________________________________________
> 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
> 


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list