Results 1 to 4 of 4

Thread: Gotta be simple but I don't see it *resolved*

Threaded View

  1. #1

    Thread Starter
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    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:
    1. Private Sub msfDiary_DblClick()
    2.     Dim liRow As Long
    3.    
    4.     dDateTime = Now()
    5.    
    6.     If msfDiary.Row > 0 Then
    7.         If msfDiary.Col = 0 Then
    8.             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:
    1. Private Sub msfDiary_DblClick()
    2. 'Tyson #00064
    3.     Dim liRow As Long
    4.    
    5.     dDateTime = Now()
    6.    
    7.     If msfDiary.Row > 0 Then
    8.         If msfDiary.Col = 0 Then
    9.             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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width