suggestion: initialize array values within the DIM statement
#13
(12-21-2022, 09:37 PM)Spriggsy Wrote: I always dim all my arrays as MyArray(0 to 5) or whatever. I want 0 to be my first element and I want to be doubly sure that my array is the exact size that I'm wanting.

What about a program that lists the names of the months? Zero for January and eleven for December seems a bit confusing.

It would be just the way it is in C, but one do not necessarily have to imitate it in Basic.
Reply


Messages In This Thread
RE: suggestion: initialize array values within the DIM statement - by Kernelpanic - 12-21-2022, 09:49 PM



Users browsing this thread: 7 Guest(s)