Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Function Talunos
Function Talunos
Cells[plano,mesinicio+2]); End;
Procedure qalunos_Trimestre (Alunos:tstringgrid; mesinicio:integer); Var Totalalunostrimestre,i: Integer; Begin Totalalunostrimestre:=0; For i := 1 to 3 do Begin Totalalunostrimestre:= totalalunostrimestre + strtoint(Alunos.Cells[i,mesinicio]) + Strtoint(alunos.cells[i,mesinicio+1]) + strtoint(alunos.Cells[i,mesinicio+2]); End; End;
Procedure tform1.Button1Click(Sender: tobject); Begin If radiogroup1.itemindex=0 then Mesinicio:=1 ; If radiogroup1.itemindex=1 then Mesinicio:=4 ; If radiogroup1.itemindex=2 then Mesinicio:=7; If radiogroup1.itemindex=3 then Mesinicio:=10; Plano:=radiogroup2.itemindex+1; If checkbox1.Checked then
Begin Memo1.Lines.Add('resultado:'); If mesinicio=1 then Memo1.Lines.Add('Trimestre: Jan-Mar'); If mesinicio=4 then Memo1.Lines.Add('Trimestre: Abr-Jun'); If mesinicio=7 then Memo1.Lines.Add('Trimestre: Jul-Set'); If mesinicio=10 then Memo1.Lines.Add('Trimestre: Out-Dez'); Memo1.Lines.Add('Plano: '+stringgrid1.Cells[Plano,0]); Memo1.Lines.Add('Total Alunos: '+ Inttostr(Talunos_Trimestre_Plano(stringgrid1,mesinicio,plano))); Memo1.Lines.Add(''); End;
If checkbox2.checked then Begin Memo1.Lines.Add('resultado:'); If mesinicio=1 then Memo1.Lines.Add('Trimestre: Jan-Mar'); If mesinicio=4 then Memo1.Lines.Add('Trimestre: Abr-Jun'); If mesinicio=7 then Memo1.Lines.Add('Trimestre: Jul-Set'); If mesinicio=10 then Memo1.Lines.Add('Trimestre: Out-Dez'); Memo1.Lines.Add('Plano: Todos'); Qalunos_Trimestre(stringgrid1, mesinicio); Memo1.Lines.Add('Total Alunos: '+inttostr(Totalalunostrimestre)); Memo1.Lines.Add('');
End; End; Procedure tform1.formcreate(Sender: tobject); Var I: Integer; Begin Stringgrid1.Cells[0,0]:='ms'; For i := 1 to 12 do Stringgrid1.Cells[0,i]:=inttostr(i); Stringgrid1.Cells[1,0]:='Light'; Stringgrid1.Cells[2,0]:='Full'; Stringgrid1.Cells[3,0]:='Plus'; End;