Página 1 de 1

ArrayBrowse ... appending rows problem ??

Publicado: Vie Feb 15, 2008 4:19 pm
por ChrisGillard
I am having problems adding rows to an ArrayBrowse where I have a get on
column 1 & want to put 'looked up' data into column 2.
Attached is a simple test program that allows you to enter something in
column 1 & should put seconds() into column 2.
I use Column1PostEdit event and ArrayBrowse:SetValue to put the seconds()
into column 2
The seconds() value always goes into column 2 but in the row above.
It appears ArrayBrowse:nRowSel is always 1 behind the current row.
Entering on row 1 works ok possibly because this is an edit to the iniatail
array row rather than an append.
Maybe when appending rows nRowSel will always be 1 behind ??
Any explanation, including my bad code, would be appreciated.
Regards
Chris Gillard


Attached files arraybrowse.zip (24.5 KB)Â

ArrayBrowse ... appending rows problem ??

Publicado: Sab Feb 16, 2008 12:46 pm
por ChrisGillard
Hi,
Panic over ...
I think its my understanding thats been faulty ...
I now begin to understand the relevance of lAutoSave, Column onExit events &
Column & Browse onPostEdit events.
I think I can get it to work ok now.
Regards
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:[email=47b5ada2@ozsrv2.ozlan.local...]47b5ada2@ozsrv2.ozlan.local...[/email]
>I am having problems adding rows to an ArrayBrowse where I have a get on
> column 1 & want to put 'looked up' data into column 2.
>
> Attached is a simple test program that allows you to enter something in
> column 1 & should put seconds() into column 2.
>
> I use Column1PostEdit event and ArrayBrowse:SetValue to put the seconds()
> into column 2
>
> The seconds() value always goes into column 2 but in the row above.
>
> It appears ArrayBrowse:nRowSel is always 1 behind the current row.
>
> Entering on row 1 works ok possibly because this is an edit to the
> iniatail
> array row rather than an append.
>
> Maybe when appending rows nRowSel will always be 1 behind ??
>
> Any explanation, including my bad code, would be appreciated.
>
> Regards
>
> Chris Gillard
>
>
>
>

ArrayBrowse ... appending rows problem ??

Publicado: Sab Feb 16, 2008 12:46 pm
por ChrisGillard
Hi,
Panic over ...
I think its my understanding thats been faulty ...
I now begin to understand the relevance of lAutoSave, Column onExit events &
Column & Browse onPostEdit events.
I think I can get it to work ok now.
Regards
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:[email=47b5ada2@ozsrv2.ozlan.local...]47b5ada2@ozsrv2.ozlan.local...[/email]
>I am having problems adding rows to an ArrayBrowse where I have a get on
> column 1 & want to put 'looked up' data into column 2.
>
> Attached is a simple test program that allows you to enter something in
> column 1 & should put seconds() into column 2.
>
> I use Column1PostEdit event and ArrayBrowse:SetValue to put the seconds()
> into column 2
>
> The seconds() value always goes into column 2 but in the row above.
>
> It appears ArrayBrowse:nRowSel is always 1 behind the current row.
>
> Entering on row 1 works ok possibly because this is an edit to the
> iniatail
> array row rather than an append.
>
> Maybe when appending rows nRowSel will always be 1 behind ??
>
> Any explanation, including my bad code, would be appreciated.
>
> Regards
>
> Chris Gillard
>
>
>
>