Thank you Alan! Jeff
--------------- Jeff Johnson [email protected] (623) 582-0323 www.san-dc.com On 05/25/2012 06:06 AM, Alan Bourke wrote: > * -- x = horizontal, y=vertical > lnRowout = 0 > lnColout = 0 > lnViewout = 0 > > lnTopY = thisform.grid1.Top + thisform.grid1.HeaderHeight + 10 > lnTopX = thisform.grid1.Left + 20 > > lnBottomY = thisform.grid1.Top + Thisform.grid1.Height - 20 > lnBottomX = thisform.grid1.Left + 20 > > * -- Get top row. '3' means we're looking for a cell. > Thisform.grid1.GridHitTest(lnTopX, lnTopY, 3, @lnRowout, > @lnColout, @lnViewout) > thisform.PSet(1, lnTopY) > && -- For visual test only. > Thisform.grid1.ActivateCell(lnRowOut, lnColOut) > lcStartCode = celu.stock_code&& -- > celu.stock_code being the field that the first column is bound > to. > > Thisform.grid1.GridHitTest(lnBottomX, lnBottomY, 3, @lnRowout, > @lnColout, @lnViewout) > thisform.PSet(1,lnBottomY) > && -- For visual test only. > Thisform.grid1.ActivateCell(lnRowOut, lnColOut) > lcEndcode = celu.stock_code > > > Debugout 'Start:' + lcStartcode + ' ' + 'End:' + lcEndcode > > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

