how can i get the number of the current column of grid

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

how can i get the number of the current column of grid

Post by fouednoomen »

Dear Friends ,

I want to know how can i get the number of the current column when i click on the cell of grid

Regards

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

Re: how can i get the number of the current column of grid

Post by mol »

You can use VALUE to determine row and col, remember to declare CellNavigation
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: how can i get the number of the current column of grid

Post by danielmaximiliano »

fouednoomen wrote:Dear Friends ,

I want to know how can i get the number of the current column when i click on the cell of grid

Regards

Foued
Hi Foued :
Look into C:\hmg.3.1.1\SAMPLES\GRID.25\demo.prg Line 35
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

GRID NAVIGATION

Post by Pablo César »

fouednoomen wrote:I want to know how can i get the number of the current column when i click on the cell of grid
Dear Foued, this depending how you have declarec your grid. When you set NAVEGATION .T. return of THIS.VALUE (in your ONCHANGE of grid) will returns an uniderectional ARRAY ( for example: {4} ) but if you set NAVIGATION .F. will returns a bidrectional ARRAYS like this { nRow, nCol }. There are another particular cases, please read this: http://hmgforum.com/viewtopic.php?p=25396#p25396
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: how can i get the number of the current column of grid

Post by fouednoomen »

Many thanks All my friends

I find in your replays my solution

Best regards

Foued
Post Reply