[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CRASH REPORT] tab_amort


Il 03/02/26 22:32, Alexandre Six ha scritto:
I try to populate a tableview with data =>

Hi,
something like that, I don't understand much about math:

Public Sub Form_Open()

  Dim taux_sur_12 As Float = 4 / 12 / 100
  Dim mensualite As Float

  TableView1.Rows.Count = (30 * 12)
  TableView1.Columns.Count = 1
  TableView1.Header = GridView.Both
  TableView1.Columns[0].Title = "TRANCHE"
mensualite = 100000 * (taux_sur_12 / (1 - (1 + taux_sur_12) ^ (-12 * 30)))
  Print mensualite
  Print "Interets = " & CStr(100000 * taux_sur_12)
  'TableView1.Rows.Count(30 * 12)
  Dim i As Integer = 0
  While i < 30 * 12

    Print i
    TableView1[i, 0].Text = mensualite
    i += 1
  Wend

End

Regards
Gianluigi


Follow-Ups:
Re: [CRASH REPORT] tab_amortAlexandre Six <six.alexandre@xxxxxxxxx>
References:
[CRASH REPORT] tab_amortAlexandre Six <six.alexandre@xxxxxxxxx>