BROWSE - how to get FIELDS array, HEADERS array

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

BROWSE - how to get FIELDS array, HEADERS array

Post by mol »

Hi guys!
Iwanna write an universal function to set filter working with any browse, called from context menu.
I tried to use something like that:
cCurrWindow:= thisWindow.name
cCurrBrowse := this.name
aFields := GetProperty(cCurrWindow, cCurrBrowse, "Fields")
but this sample doesn't work...
Where is error?
What do you think?

Best regards and Happy Easter
Marek
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: BROWSE - how to get FIELDS array, HEADERS array

Post by Rathinagiri »

Try using this...

i := GetControlIndex ( cbrowsename , cwindowname )

aFields := _HMG_SYSDATA [ 31 ]
aHeaders := _HMG_SYSDATA [ 33 ]

This is an internal extraction from HMG Source h_browse.prg. I remember Roberto told this in gridprint thread.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: BROWSE - how to get FIELDS array, HEADERS array

Post by Rathinagiri »

Oh! Yes, I know that. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply