[solved] It seems a BUG with an (assoc.) array defined global
Posted: 22 Jul 2024 00:15
Hi there - still scripting with arrays
I need to define an array (to say: associative) as global.
First run the attached script with the commented Global statement: it's OK.
(Though I didn't ecpect the result with index [0] and [1]...)
Then de-comment the Global stmt: now index 'ss', 'count', and 0 all show the second = the last set value, i.e. 5, while the first set value is lost.
(I really don't search these
- they just find me
)
I need to define an array (to say: associative) as global.
First run the attached script with the commented Global statement: it's OK.
(Though I didn't ecpect the result with index [0] and [1]...)
Then de-comment the Global stmt: now index 'ss', 'count', and 0 all show the second = the last set value, i.e. 5, while the first set value is lost.
(I really don't search these