PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → How to select row or column in table - windev ?
How to select row or column in table - windev ?
Débuté par PETER, 14 nov. 2007 21:58 - 3 réponses
Posté le 14 novembre 2007 - 21:58
Hi,

1) What's the command to select a certain table row & column in windev ?

"TableSelectPlus" is to select the row...

How about the column ?

2) And will it becomes EDIT entry mode immediately if i select that column ( if the initial state is a EDIT TABLE ?) Or i need to do some coding to make it "auto-entry" ? or do a "double-click" on that column ?
Posté le 15 novembre 2007 - 07:22
Hi Peter,

Just use ReturnToCaptur(myColumn)

HTH,

Louis.
Posté le 15 novembre 2007 - 20:21
Peter,

Here some code I used in one of my projects to select a cell and to color the cell.

============================================================================

//Left Button down (WM_LBUTTONDOWN) of table_table1

SI TABLE_Table1..Occurrence = 0 ALORS RETOUR

SI SAI_Regelnr>0 ET SAI_Kolom>0 ALORS

TABLE_Table1[SAI_Regelnr,SAI_Kolom]..CouleurFond=iCouleurDéfaut

FIN

SAI_Kolom=TableInfoXY(TABLE_Table1,tiNumColonne,SourisPosX(),SourisPosY())

SAI_Kolomnaam=TableInfoXY(TABLE_Table1,tiNomColonne,SourisPosX(),SourisPosY())

SAI_Regelnr=TableInfoXY(TABLE_Table1,tiNumLigne,SourisPosX(),SourisPosY())

IF SAI_Regelnr < 1 THEN SAI_Regelnr=TABLE_Table1..Occurrence

SI SAI_Kolom < 9 ALORS SAI_Kolom=9

TABLE_Table1[SAI_Regelnr,SAI_Kolom]..CouleurFond=iRougeClair

==============================================================================

So I also have code for the left, right, up en down keys. The result si tha you see a red cell moving with your cursor movements. May be there is something you can use.

Succes.

Huib.



>Hi,

1) What's the command to select a certain table row & column in windev ?


>"TableSelectPlus" is to select the row...

How about the column ?


>2) And will it becomes EDIT entry mode immediately if i select that column ( if the initial state is a EDIT TABLE ?) Or i need to do some coding to make it "auto-entry" ? or do a "double-click" on that column ?
Posté le 28 janvier 2019 - 17:58
Hi Huib Preij,
Could you please send the code you use for the left, right, up en down keys, I have trying to move inside the tables in WEBDEV but I still do not solve it.

Thanks in advance!