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
how can i get the number of the current column of grid
Moderator: Rathinagiri
- 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
You can use VALUE to determine row and col, remember to declare CellNavigation
- 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
Hi Foued :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
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
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
GRID NAVIGATION
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#p25396fouednoomen wrote:I want to know how can i get the number of the current column when i click on the cell of grid
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
Many thanks All my friends
I find in your replays my solution
Best regards
Foued
I find in your replays my solution
Best regards
Foued