|
-
May 25th, 2004, 12:38 PM
#1
Gotta be simple but I don't see it *resolved*
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?
Last edited by TysonLPrice; May 25th, 2004 at 02:28 PM.
-
May 25th, 2004, 01:19 PM
#2
PowerPoster
Have you tried this?
msfDiary.Row = msfDiary.MouseRow
msfDiary.Col = msfDiary.MouseCol
-
May 25th, 2004, 01:21 PM
#3
Should the double click have the .col value or could it be getting set somewhere else I'm not seeing?
I created a simple form with a grid on it and .col and .row return the correct values unless I click-click on a fixed row or column in which case .col = the number of the first non-fixed column or .row = the first non-fixed row
Maybe a property setting I'm not seeing?
check the value of the SelectionMode Property. If it is not 0-flexSelectionFree you could see the problem you are having
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
May 25th, 2004, 02:28 PM
#4
As always you folks are great....
#1.
0-flexSelectionFree made it work like the form I cloned it from. Missed that when I compared properties.
#2.
msfDiary.Row = msfDiary.MouseRow comes up with zero everytime. I need to figure that out.
msfDiary.Col = msfDiary.MouseCol got the cell like I needed also.
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|