Ok I change the sentence, like this: PUBLIC SUB mitabla_Change() DIM xArray AS String[] xArray = ["Proba1", "proba2", "proba3"] IF mitabla.Column = 0 THEN mitabla.Edit(xArray, TRUE) ENDIF END And the error is the same: "Null object". (It's the full error message)
Thanks for your help Tomas 2009/9/7, Benoît Minisini <[email protected]>: >> I have a problem in a tableview >> >> I try to edit a cell in a tableview as a comboview. >> I write: >> >> Public sub mitabla_change() >> DIM xArray AS NEW String[3] > > As you assign xArray a new array, you don't have to initialize it with a > void > one. Just do: DIM xArray AS String[] > >> xArray = ["prueba1", "prueba2", "prueba3"] >> IF mitabla.Column = 0 THEN >> subventas.Edit(xArray, TRUE) ' here is the problem >> ENDIF >> END >> I get a error ("Null object"), but xArray is not null. >> Does anyone help me?, Where is the problem? >> > > Can you give the full error message? > > -- > Benoît > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
