GRID Set RecNo in filtered/conditional tables

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
radohabjan
Posts: 99
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

GRID Set RecNo in filtered/conditional tables

Post 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
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: GRID Set RecNo in filtered/conditional tables

Post by dhaine_adp »

Hi Rado,

Have you tried Grid.RecNo := ordkeycount(), assuming that the current work area is your database.

Regards,

Danny
Regards,

Danny
Manila, Philippines
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: GRID Set RecNo in filtered/conditional tables

Post 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.
Regards/Saludos,

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

Post by radohabjan »

Hello Roberto,

problem is only when SET DELETED is ON, with OFF works fine.

br Rado
Post Reply