'// Source code dealing with how to use arrays '// (c) 98 by RokFOX - Included with the QB-GFX #1 TUTORIAL CLS DIM SHARED ArraySize AS INTEGER '// We declare the ArraySize variable as integer ArraySize = 5 '// We store the array size into this variable DIM SHARED OurArray(ArraySize) AS STRING '// The array is named: OurArray '// Fills OurArray with some silly text ;) OurArray(0) = "Hello guys !" OurArray(1) = "Welcome to RokFOX' QB GFX TUTORIALS" OurArray(2) = "I hope you enjoy 'em" OurArray(3) = "I also hope they'll be helpful to you" OurArray(4) = "This's a little demo on how to use arrays" OurArray(5) = "- The End -" '// Now the below code prints OurArray on the screen FOR n% = 1 TO ArraySize PRINT OurArray(n%) NEXT END '// Goodbye!