[Gambas-user] tableview edit

Tomas Costa rivas tomascostarivas at ...626...
Mon Sep 7 17:13:14 CEST 2009


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 <gambas at ...1...>:
>> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list