Chiba Terrell
February 15th, 2000, 08:53 PM
I have a problem with an Array & a module, Im not sure how to do this...
I have a form where Students can enter their name, & grades under columns Homework, the arrays created Average the scores
across for each student & down for each homework assignment.
Now the instructor has written: Note that cmdNewHomework_Click(), cmdNewStudent_Click(), and Form_Load() all contain the same
, long statement: ReDim Grades ( 0 To NumStudents - 1, 0 To NumHomeworks -1)
He wants us to Move this statement with calls to a new sub.
After doing this he wants us to have only one ReDim statement in the whole program, it should be executed when the form is loaded
into memory, and when the user clicks either the "New Student" or the "New Homework" command button.
Can anyone offer some suggestions on how to write this... I sure would appreciate..... Thanks
I have a form where Students can enter their name, & grades under columns Homework, the arrays created Average the scores
across for each student & down for each homework assignment.
Now the instructor has written: Note that cmdNewHomework_Click(), cmdNewStudent_Click(), and Form_Load() all contain the same
, long statement: ReDim Grades ( 0 To NumStudents - 1, 0 To NumHomeworks -1)
He wants us to Move this statement with calls to a new sub.
After doing this he wants us to have only one ReDim statement in the whole program, it should be executed when the form is loaded
into memory, and when the user clicks either the "New Student" or the "New Homework" command button.
Can anyone offer some suggestions on how to write this... I sure would appreciate..... Thanks