I can't seem to see what I'm missing (no jokes please).
I copied a msfFlexGrid from another part of the project and am working in the dblclick event. In this piece of code .col contains the value of the cell number clicked:
VB Code:
Private Sub msfDiary_DblClick() Dim liRow As Long dDateTime = Now() If msfDiary.Row > 0 Then If msfDiary.Col = 0 Then iDiaryID = msfDiary.TextMatrix(msfDiary.Row, 16)...etc
In my version, and I don't see a difference, it always contains a zero no matter which cell I click on.
VB Code:
Private Sub msfDiary_DblClick() 'Tyson #00064 Dim liRow As Long dDateTime = Now() If msfDiary.Row > 0 Then If msfDiary.Col = 0 Then iDiaryID = msfDiary.TextMatrix(msfDiary.Row, 16)...etc
I've compared the grid properties and don't see a difference and I don't see any other code excuting before the double click. Should the double click have the .col value or could it be getting set somewhere else I'm not seeing? Maybe a property setting I'm not seeing?




Reply With Quote