[Gambas-user] Gambas 3.1 boogey
Benoît Minisini
gambas at ...1...
Tue Apr 10 20:06:12 CEST 2012
Le 10/04/2012 19:38, M. Cs. a écrit :
> I have a Gridview gV and the corresponding Data event handler:
>
> Public Sub gv_Data(x As Integer, y As Integer) ' Fills the GridView
> with the query results
> Dim i As Integer
> Dim szine As String
> If ((x Mod 2) = 0) Then
> szine =&E5E5E5&
> Else
> szine =&FFFFFF&
> Endif
>
> Select Case y
> Case 0
> gV.Data.Text = Keress.Name(x)
> gV.Data.BackGround = szine
> Case 1
> gV.Data.Text = Keress.Volm(x)
> gV.Data.BackGround = szine
> Case 2
> gV.Data.Text = Keress.Road(x)
> gV.Data.BackGround = szine
> Case 3
> gV.Data.Text = Keress.Size(x)
> gV.Data.BackGround = szine
> Case 4
> gV.Data.Text = Keress.When(x)
> gV.Data.BackGround = szine
>
> End Select
>
> End
>
> I didn't change anything but the program exits with Null object error
> for gV.Data.Text, while Keress.Name(x) etc. are returned correctly.
>
> Csaba
>
Do you have a project that reproduces the bug? There are GridView
controls everywhere in the Gambas IDE and they do not crash AFAIK, so it
may be a subtle bug!
--
Benoît Minisini
More information about the User
mailing list