Private Sub Load_Scores
'INITALLY USING TODAY'S DATE AS DEFAULT
Log(period)
rs=Starter.sql.ExecQuery2 _
("SELECT studentId, studentName FROM Attendance WHERE groupName =? AND classPeriod=?" _
,Array As String(selectedGroup,period))
Do While rs.NextRow
Dim pa As B4XView = xui.CreatePanel("")
pa.LoadLayout("ListOfStudentsScores")
pa.SetLayoutAnimated(0,0,0,clvAttendance.AsView.Width,60dip)
lblScores1.Text = rs.GetString("studentID")
lblScores2.Text = rs.GetString("studentName")
clvAttendance.Add(pa,"")
Loop
rs.Close
End Sub