G
Guest
Hi all,
can anyone tell me how i can find out if an array is empty?
i want to code an if statment that loops through an array only if it is not empty.
I have been trying
if not (CarArray1 is nothing) then
but this doesnt work. I was told to use the count, but it doesnt like my coding
if CarArray1.count >0 then
Can anyone advise me?
Also, How do i clear the items in an array?
CarArray1.clear ????
As u can see i just guessing the coding )
thank u
can anyone tell me how i can find out if an array is empty?
i want to code an if statment that loops through an array only if it is not empty.
I have been trying
if not (CarArray1 is nothing) then
but this doesnt work. I was told to use the count, but it doesnt like my coding
if CarArray1.count >0 then
Can anyone advise me?
Also, How do i clear the items in an array?
CarArray1.clear ????
As u can see i just guessing the coding )
thank u