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 ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
