How to determine Cell Position

RevList RevList at CreaTECHSol.com
Mon May 12 20:23:24 EDT 2008


How to use Revolution <use-revolution at lists.runrev.com> on May 12, 2008 at
1:37 PM -0700 wrote:
>I have a Scrolling Table Field that is populated with  tab delimited rows
>of data
>Just above that table field, I have a second, 1 row table field that lists
>the column titles.
>The data and the column titles change as I import data into the fields.
>
>What I would like to do is sort the large table of data based on which
>item is clicked on in the title table row.
>My question is.
>Is there a method that will tell me which cell column (item) I am clicking
>on in a table row?
>
>Thanks in advance.

Never mind.  I figured out a way.  As long as I have spaces in the title
field using <option> space, the titles are considered a single word and
the following does it for me.

 put the value of the ClickChunk into chnk
 set the itemdelimiter to tab
 set Wholematches to true
 Put itemOffSet(Chnk,fld TableTitles) into itemNo
 sort lines of field TableMatch ascending text by item itemNo of each
  
Stewart

--------------------------------------------------------------------------------------------------------------------
Notice of Confidentiality:
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review re-transmission dissemination or other use of or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited.  If you received
this in error please contact the sender immediately by return electronic
transmission and then immediately delete this transmission including all
attachments without copying distributing or disclosing same.
--------------------------------------------------------------------------------------------------------------------




More information about the use-livecode mailing list