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

[CRASH REPORT] tab_amort


Hello,

Damned, my program crashed Gambas that way  : when I run my prog in debug

I don't understand what's happening. I think I 'm not using tableview
correctly.

I try to populate a tableview with data =>

  Dim taux_sur_12 As Float = $taux / 12 / 100
  Dim mensualite As Float
  mensualite = $Montant * (taux_sur_12 / (1 - (1 + taux_sur_12) ^ (-12 *
$nbAnnee)))
  Print mensualite
  Print "Interets = " & CStr($Montant * taux_sur_12)
  TableView1.Rows.Count($nbAnnee * 12)
  Dim i As Integer = 0
  While i < $nbAnnee * 12

    Print i
    TableView1[i, 0].Text = CStr(i + 1)
    i += 1
  Wend

Sorry for my poor gambas test project, I'm learning :)

Follow-Ups:
Re: [CRASH REPORT] tab_amortGianluigi <gradobag@xxxxxxxxxxx>