Você está na página 1de 1

For ArrIndx = 1 To grvNdados.

RecordCount

If Not dic.Exists(LCase(grvNdados!tipo)) Then


dic.Add LCase(grvNdados!tipo), Nothing
If grvNdados!tipo = "Despesas" Then
Set nodxR1 = UcaixaArvore.tvFicha.Nodes.Add("Ficha", tvwChild, grvNdados!tipo, _
grvNdados!tipo, 3)
nodxR1.Expanded = True
Else
Set nodxR1 = UcaixaArvore.tvFicha.Nodes.Add("Ficha", tvwChild, grvNdados!tipo, _
grvNdados!tipo, 2)

End If
End If

If Not dic.Exists(LCase(grvNdados!Conta)) Then


dic.Add LCase(grvNdados!Conta), Nothing
If grvNdados!tipo = "Despesas" Then
Set nodxR2 = UcaixaArvore.tvFicha.Nodes.Add(nodxR1, tvwChild, _
grvNdados!Conta, grvNdados!Conta, 3)
Else
Set nodxR2 = UcaixaArvore.tvFicha.Nodes.Add(nodxR1, tvwChild, _
grvNdados!Conta, grvNdados!Conta, 2)
End If

End If

If Not dic.Exists(LCase(grvNdados!Grupo)) Then


dic.Add LCase(grvNdados!Grupo), Nothing
If grvNdados!tipo = "Despesas" Then
Set nodxR3 = UcaixaArvore.tvFicha.Nodes.Add(nodxR2, tvwChild, _
grvNdados!Grupo, grvNdados!Grupo, 3)
Else
Set nodxR3 = UcaixaArvore.tvFicha.Nodes.Add(nodxR2, tvwChild, _
grvNdados!Grupo, grvNdados!Grupo, 2)
End If

Você também pode gostar