looking for a smart approach to "sort" an array

J. Landman Gay jacque at hyperactivesw.com
Sat May 6 14:08:29 EDT 2017


On 5/6/17 12:10 PM, Jim Lambert via use-livecode wrote:
> Set the tabstops to a number greater than the width of the field.
> Set the itemdelimter to tab.
> Then put the OtherData of each line into the second item of each line.
>
> As long as there’s no horizontal scrollbar on the field the user will never see the OtherData.
> Getting item 2 of the hilitedline will always give you the corresponding OtherData for the word the user has selected.

I've done this often, it's a nice clean solution. And now that we can 
set tabstops to 0, the second item won't be visible whether there's a 
horizontal scrollbar or not.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the Use-livecode mailing list