Every time you state the problem you are trying to solve, I catch myself saying 
"This is not how I would do it." Array values are not searchable, which makes 
it unsuitable for searching. Fields can be searched easily enough, datagrids 
without too much more trouble are searchable, and databases are the best way to 
go about this. You can load/save the data you put into the field with 
openCard/closeCard, and let the user do whatever they want with the data 
itself. 

If all you are trying to do is let the user rearrange and save data in a field, 
why not just load/save the contents of the field in a property on 
openCard/closeCard? I do not grasp why the transform to an array is 
accomplishing anything. 

Bob S


> On May 6, 2017, at 07:28 , Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Wasn't my post originally, but the gist of the problem was, how does one
> get data back out of an array based on a custom sorted list of words that
> are used as main array key back out of the array in the desired sequence.
> 
> IE there is a list of words in a field.  And an array that has extra
> information relating to each word keyed by array[theWord]
> 
> To me, the simplest answer is to keep track of the word list and iterate
> through it to access each key of the array in the desired sequence.


_______________________________________________
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

Reply via email to