PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: SIGrid determining current row  (Read 209 times)

dacarle

  • Guest
SIGrid determining current row
« on: June 16, 2005, 12:49:04 PM »

I am not sure that I am doing the following correctly.  I am trying to determine with current row and column (more important row) where the double click event occurs.  With a read only SIGrid and using the SI_GRID_MSG_DBLCLICK function along with

Dim SelRowCol As siSelectedRowCol Ptr
Local RowTemp As Long
Local ColTemp As Long

SelRowCol=VarPtr(lpSelectedRowCol)
RowTemp=@SelRowCol.Row
ColTemp=@SelRowCol.Col

returns the wrong results.  Any help appreciated.

-David
Logged

TechSupport

  • Guest
SIGrid determining current row
« Reply #1 on: June 16, 2005, 02:15:10 PM »

Hi David,

Your problem is that you are using the VarPtr. Remove that and it will work. You see, using Varptr returns the memory address for the lpSelectedRowCol VARIABLE. What you want is the value held in that variable which is the address to the lpSelectedRowCol structure.

Clear as mud?

:)
Logged

dacarle

  • Guest
SIGrid determining current row
« Reply #2 on: June 16, 2005, 02:22:50 PM »

thanks.  worked like a charm.
Logged