I am new to VBScript and ASP. When I want to create an ASP page to collect data on student grades I declare the variables and then assign the variables a value as I did below.
Dim intStudentGrade1
Dim intStudentGrade2
Dim intStudentGrade3
intStudentGrade1 = 90
intStudentGrade2 = 100
intStudentGrade3 = 85
But do I have to declare the variables when creating an array to do this or do I just have to do:
Dim aintStudentGrade
aintStudentGrade(0) = 90
aintStudentGrade(1) = 100
aintStudentGrade(2) = 85
Dim intStudentGrade1
Dim intStudentGrade2
Dim intStudentGrade3
intStudentGrade1 = 90
intStudentGrade2 = 100
intStudentGrade3 = 85
But do I have to declare the variables when creating an array to do this or do I just have to do:
Dim aintStudentGrade
aintStudentGrade(0) = 90
aintStudentGrade(1) = 100
aintStudentGrade(2) = 85