The size of the array has to be known at compile time. If it has to be decided at run-time please use dynamic arrays. When you used #Define the size was known at compile time hence it worked.
Reputation Points: 431
Solved Threads: 116
Practically a Master Poster
Offline 654 posts
since Dec 2007