[Gambas-user] Gambas 3.1 boogey

M. Cs. mohareve at ...626...
Tue Apr 10 19:38:24 CEST 2012


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




More information about the User mailing list