Monday, 21 February 2011

Array Info. Fun!

Array Class Example:

---------------------------------------------------------------------------------
Dim Grade (13) as String
Dim Index as Interger

For Index = 0 - 13

Student.Grade(Index) = "A"

Next
---------------------------------------------------------------------------------

The program that this code is for will save a 'record' as such for each Student called a Grade. This program will save this data into a slot numbered from 0-13 and save these slots as a lump on the RAM stick.

You can also have 2 dimensional  array's: The Structure of these are:

Dim OfficeCounts(40, 5)

No comments:

Post a Comment