Page 1 of 1
GRID Set RecNo in filtered/conditional tables
Posted: Sat May 01, 2010 8:31 pm
by radohabjan
Hello,
how can I set Record Number in database grid, while this function is not allowed for filtered/conditional indexed tables.
HMG 3.0.31
Grid.RecNo:=recno()
Best regards Rado
Re: GRID Set RecNo in filtered/conditional tables
Posted: Sun May 02, 2010 4:05 am
by dhaine_adp
Hi Rado,
Have you tried Grid.RecNo := ordkeycount(), assuming that the current work area is your database.
Regards,
Danny
Re: GRID Set RecNo in filtered/conditional tables
Posted: Sun May 02, 2010 1:25 pm
by Roberto Lopez
I've done so, since, you could try to set recno to a non-visible record (because filter or conditional index) creating a malfunction.
I plan to add some kind of check to find if a record is visible or not and allow or ignore the operation.
Re: GRID Set RecNo in filtered/conditional tables
Posted: Sun May 02, 2010 6:02 pm
by radohabjan
Hello Roberto,
problem is only when SET DELETED is ON, with OFF works fine.
br Rado