Process_Globals
Dim lstModules as List
Sub Load_Click
lstModules.Initialize
If Check1.Checked = True then
lstModules.Add("Module1")
End If
If Check2.Checked = True then
lstModules.Add("Module2")
End If
'Now load the first module and remove it from the list
If lstModules.Size > 0 then
Dim TheModuleToLoad as String = lstModules.Get(0)
lstModules.RemoveAt(0)
LoadModule(TheModuleToLoad)
End If
End Sub