Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveRow and ActiveColumn
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
ActiveRow and ActiveColumn
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01575173
Message ID:
01575173
Views:
151
Hi everybody,

I have some complex form and complex container class. In that class there is a grid. Double click on each cell is bound to container's DblClick. That DblClick method starts from the following code
with this
		lnTrueRow = .grdMatrix.activerow
		lnTrueCol = .grdMatrix.activecolumn
        try
			lnInvent_id = .a_Invent_id(m.lnTrueRow, m.lnTrueCol)
		CATCH TO loError
		    oAppObj.Write_log("Encountered an error: " + loError.Message + CHR(13) + CHR(10) + ;
		    				   "in MatrixGrid DblClick method on the line " + CHR(13) + CHR(10) + ;
		                       "lnInvent_id = .a_Invent_id(m.lnTrueRow, m.lnTrueCol)" + CHR(13) + CHR(10) + ;
		                       "m.lnTrueRow = " + TRANSFORM(m.lnTrueRow) + " m.lnTrueCol = " + TRANSFORM(m.lnTrueCol), PROGRAM(), "3")
		    lnInvent_id = 0
		endtry
What I found is that under certain scenario the lnTrueRow is reported as 2 although the grid has only one row of data. I am wondering what is the other more reliable way to figure out the index (row and column) of the cell that initiated double click?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform