Quick question !

How would you build an array of variable number of arrays containing each a variable number of strings.

For example, to build an array of x courses containing a variable number of students, I could do something like :

Option Base 1
Dim arrCourses() As Variant

'and later, when nNbCourses would be known
ReDim arrCourses(nNbCourses)

'then, I could def the nNbCourses arrays with students lists and a course name as first elt :
arrCourses(1) = Array("MATH", "Paul Smith", "Arthur Dupond", "Isabelle Dupres")
arrCourse(2) = Array("HIST", "Hector Biltran", "Isabelle Dupres", "Henry Clark", "Theo Done")
...

But what if I have to add every students one by one, since I can't "ReDim-like" my arrCourse, then define every element in a for/next loop.

Any idea (in VB only, of course) and point of vue welcome
Thanks in advance
Cordially