In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

ArrayBrowse ... appending rows problem ??

Xailer professional forum in English
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

ArrayBrowse ... appending rows problem ??

Mensaje 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)Â
Responder