Well if you use the script below it will give you 3, as it should be because you have a value in the 3rd position.
-- Setup the arrays..
foobar = {nil,nil,1}
ArrayEntries = 0
function test_init(e)
-- Find the size of this array..
ArrayEntries = #foobar
end
function test_main(e)
Prompt(ArrayEntries)
end
But if your script looks like this then you would get 1, which would also be expected since you have essentialy got rid of the last two entries
-- Setup the arrays..
foobar = {1,nil,nil}
ArrayEntries = 0
function test_init(e)
-- Find the size of this array..
ArrayEntries = #foobar
end
function test_main(e)
Prompt(ArrayEntries)
end
And if you put 'nil' in all the entries then 'ArrayEntries' would show 0. So you could say by this that it is reducing the size of the array when necessary.
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.
I've got something to say - It's better to burn out than fade away.