This may have changed from Petit Computer, but you may need a CLEAR statement at the beginning of your program to clear the variable memory. After you ran it once, the array was declared as expected, but when you stopped it, it stays in memory. Then when you ran the program again, that array already existed.
It's different now, CLEAR is a syntax error in EDIT mode.
The issue I have is not redefining, it is that the array won't work at all in the first place. I define it but it says I can't for some reason. I don't really need to redefine it or anything like that. Also I need my array to stay four elements, so I don't know if POP will help. I appreciate these answers, but I can't see them helping me yet... Maybe I don't understand.
EDIT: I missed your edit. But I still can't get the array to define - the error happens on DIM X[4]. The issue isn't using the array yet.
So if I define the array at a later point in the code it won't work, even if it wasn't defined anywhere else?
Found the issue maybe - It gives me a type mismatch between an array called X and variable X. Moving it to the top did make defining work though, and led to this discovery. Thank you! :)
Have you done an ACLS at the beginning of your program?
EDIT: NVM
Apparently array can't be the same name as a variable. I learned something today :)