Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 5 Jahren, 12 Monaten
Letzter Beitrag:
vor 5 Jahren, 11 Monaten
Beteiligte Autoren:
Arie, Frans, jose antonio garrido, Piet van Zanten, David Egan

Table control cell properties

Startbeitrag von Arie am 21.11.2011 21:41

I have a table, filled by programming. Several cells show the values I need.
Now I need an extra value (recordID) for every cell. Because every cell corresponds to a data-record. And I want to store this recordID as well, behind the scne. Like gLink() for a listbox.

I tried using the note-propoerty for that. But whatever I try, the note-property seems to be the property of the column, not of the individual cell.

What am I doing wrong?
lstHours.Monday[nRow]..Note
or this
lstHours[nRow].Monday..Note

Antworten:

Hi Arie
AFAIK there is no way of directly dong this.
When I have needed something like this I have simply setup another table, identical in columns and rows either on another pane which can't be accessed by the user or outside the window. It's simple enough to populate that table with the required data, even with additions & deletions & it is then a simple correlation between the two to retrieve it.

HTH

David

von David Egan - am 22.11.2011 05:03
Hi Arie,

Create a 2-dimensional array holding the record Id's.

Regards,
Piet

von Piet van Zanten - am 22.11.2011 09:16
OK,
have to do it myself. I was afraid so. But it's not that hard to do. Will cost me another hour.
Thanks David & Piet.

von Arie - am 22.11.2011 09:41
Hi Arie. The problem was that "note" property its not avaiable for table cells. The properties for table cells are listed here, in case you need it in further times.

http://doc.pcsoft.fr/en-US/?1013264&name=programming-the-table-cells&verdisp=160



von jose antonio garrido - am 27.11.2011 13:06
Hi Arie,

I solved such a problem by making an extra hidden column in which I save the ID. When a user clicks on a cell I read the [nRow+1] cel. In that way you can easily check the id's while you are programming because then you make a button in the screen which is only availeble in testmode. This button can make the extra columns visible and unvisible.

von Frans - am 27.11.2011 18:33
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.