Hi Sieg, If you use my handler, the dghilitedline will give you the correct line number.
By way of explanation, the "Col 1 0006" you see is the name of the field in the datagrid that holds the value. The 4-digit number at the end refers to the visible line number within the datagrid, not the absolute line number being display. So if you have 12 visible lines in your datagrid, the Col 1 fields will be numbered form "Col 1 0001" to "Col 1 0012" That should answer your other question about a max of 9999 lines in the datagrid. You can have many more lines loaded into the datagrid but no more 9999 visible lines. Pete lcSQL Software <http://www.lcsql.com> On Wed, Jan 23, 2013 at 12:56 AM, Sieg Lindstrom <s...@trackandfieldnews.com>wrote: > Alas, I spoke too soon. The output on this handler correctly identifies > the column by column name but the four digit integer that follows does not > correspond to the row number. > > Sieg Lindstrom > > > On Jan 22, 2013, at 7:21 PM, use-livecode-requ...@lists.runrev.com wrote: > > > Hi. > > > > > > There are a few ways to do this. The old fashioned way is to write in > the group script: > > > > > > on mouseUp > > put the target > > end mouseUp > > > > > > You get a result that is easily deconstructed to row and column > references. > > > > > > You can also trap the "editFieldText" message, or any of the row and > column properties. > > > > > > Craig Newman > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode