Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> The project is incomplete. It's a shop management project built in > Microsoft Office (Windows) and we're trying to make it in Linux(gambas) > and > Postgresql. We don't know much about gambas. > It's a form called 'pendentes' whith a tableview called 'subventas' apart > more controls (textbox,

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
The project is incomplete. It's a shop management project built in Microsoft Office (Windows) and we're trying to make it in Linux(gambas) and Postgresql. We don't know much about gambas. It's a form called 'pendentes' whith a tableview called 'subventas' apart more controls (textbox, buttons, ...)

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> No. > Error.code=13 > Error.text="Null object" > All error message have a class name and a line number (in Error.Where). Please send your full project. -- Benoît -- Let Crystal Reports handle the reporting - Free Cr

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
No. Error.code=13 Error.text="Null object" 2009/9/7 Benoît Minisini > > 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

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> 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

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
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/

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> 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 = ["pru

[Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
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] xArray = ["prueba1", "prueba2", "prueba3"] IF mitabla.Column = 0 THEN subventas.Edit(xArray, TRUE) ' here is the problem ENDIF END I get a error ("

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-11 Thread Rolf-Werner Eilert
Benoit Minisini schrieb: > On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> who's using the edit method in the TableView control? >> >> When I tried it for the first time the other day, the editor or listbox >> always showed up one and a half lines UNDER the position of the

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-11 Thread Benoit Minisini
On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > Hi folks, > > who's using the edit method in the TableView control? > > When I tried it for the first time the other day, the editor or listbox > always showed up one and a half lines UNDER the position of the cell I > had clicked on (but wit

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-10 Thread Benoit Minisini
On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > This shows me, it's more of a bug... :-) Didn't realise, but my first > trial with it took place on a form with a complicated hierarchy. So > that's why! > > First guess: The hidden edit or listbox control is invoked with > coordinates which

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-06 Thread Leo Sendra
Thanks.. It's work well... But, should I use a mouse to choose the option in a tableview combo box?? Couldn't I use up arrow and down arrow on my keyboard to choose those option in combo box??? I have already tried up and down arrow. But, it just move to other cell. >Shouldn't be a problem. Wha

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
Shouldn't be a problem. What you need is an array that takes the list contents, then you give Edit the list and set TRUE or FALSE for the edit property of the listbox control. This is my little trial example, "ls" is the array here, "tb" is my tableview in the program which I used for the exper

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Leo Sendra
I also have a problem about edit method in tableview object. When I want to perform a list box using edit method, it doesn't work. Does anybody can show me about the code of using edit method in tableview object??? moon_walker schrieb: > Hi Rolf, > > i experienced the same issue. > It depends on

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
This shows me, it's more of a bug... :-) Didn't realise, but my first trial with it took place on a form with a complicated hierarchy. So that's why! First guess: The hidden edit or listbox control is invoked with coordinates which do not take into account the real tableview coordinates when i

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread moon_walker
Hi Rolf, i experienced the same issue. It depends on the placing of the tableview on the form. If the tableview is placed on a plain form, it worked for me as expected. If the tableview was placed on a complicated hierarchy (h-split, tabstrip,datasource, v-panel, ) then it was a bit ugly. So i d

[Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
Hi folks, who's using the edit method in the TableView control? When I tried it for the first time the other day, the editor or listbox always showed up one and a half lines UNDER the position of the cell I had clicked on (but with the correct contents). It doesn't have a frame, so I guess it