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
GRID Set RecNo in filtered/conditional tables
Moderator: Rathinagiri
-
radohabjan
- Posts: 99
- Joined: Mon Nov 30, 2009 7:17 am
- Location: Slovenia
- Contact:
- dhaine_adp
- Posts: 457
- Joined: Wed Aug 06, 2008 12:22 pm
- Location: Manila, Philippines
Re: GRID Set RecNo in filtered/conditional tables
Hi Rado,
Have you tried Grid.RecNo := ordkeycount(), assuming that the current work area is your database.
Regards,
Danny
Have you tried Grid.RecNo := ordkeycount(), assuming that the current work area is your database.
Regards,
Danny
Regards,
Danny
Manila, Philippines
Danny
Manila, Philippines
- Roberto Lopez
- HMG Founder
- Posts: 4023
- Joined: Wed Jul 30, 2008 6:43 pm
Re: GRID Set RecNo in filtered/conditional tables
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.
I plan to add some kind of check to find if a record is visible or not and allow or ignore the operation.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
-
radohabjan
- Posts: 99
- Joined: Mon Nov 30, 2009 7:17 am
- Location: Slovenia
- Contact:
Re: GRID Set RecNo in filtered/conditional tables
Hello Roberto,
problem is only when SET DELETED is ON, with OFF works fine.
br Rado
problem is only when SET DELETED is ON, with OFF works fine.
br Rado