Re: Set the backgroundcolor of all lines a field to null

2018-08-24 Thread Sannyasin Brahmanathaswami via use-livecode
@Richard re: Algo: It is a list of audio titles in a category on our web site. most of which the metadata in stored local my sqlLite. The audio and been posted since the last update to the app, is "Recent". It is stored in an local variable/array with all the metadata for each audio, but only

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Richard Gaskin via use-livecode
There's a lot in that, Brahmanathaswami. http://lists.runrev.com/pipermail/use-livecode/2018-August/249651.html 2000 lines is not much. I suspect any time spent is relating to needing the redraw the field each time it's touched. Try locking the screen at the top of the handler and see if that

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread J. Landman Gay via use-livecode
If you just want to clear the whole field (Richard suggested something similar): set the backcolor of char 1 to - 1 of fld x to empty After that you can hilite other lines if needed. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Sannyasin Brahmanathaswami via use-livecode
Aloha Brian and Richard, @ Brian "put styledText...into tTextA[snip]" looks excellent. It does it all on ram! @ Richard Again, we all appreciate the time you take to help us "understand the architecture" The list is only 2000 lines, on into a field from a sqlLite list of audio file/Title. T

RE: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Ralph DiMola via use-livecode
nformation Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of dunbarxx via use-livecode Sent: Thursday, August 23, 2018 9:46 AM To: use-revolut...@lists.runrev.com Cc: dunbarxx Subject: Re: Set the backgroundco

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread dunbarxx via use-livecode
We are all happy with the speedy "repeat for each..." construction. But there are times when the good ol' "repeat with..." construction, which manages a counting index internally, is just the right way to do things. The line number is at the ready with each iteration. Craig -- Sent from: http

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > I have some big lists in mobile, How big is "big"? 100 lines? 1,000? 1,000,000? > I sent the bkgndColor of certain > lines. > > Then I want clear that, > > How do we do this "for each line x" > which does not return the number of the line, but value > > co

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Brian Milby via use-livecode
Have you looked at the performance of using styledText? put the styledText of fld "audioList" into tTextA repeat for each key tKey in tTextA put pColor into tTextA[tKey]["style"]["backgroundcolor"] end repeat set the styledText of fld "audioList" to tTextA Thanks, Brian >

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Mark Wieder via use-livecode
On 08/22/2018 08:35 PM, Sannyasin Brahmanathaswami via use-livecode wrote: I have some big lists in mobile, I sent the bkgndColor of certain lines. Then I want clear that, How do we do this "for each line x" What I do: put 1 into tLineNumber repeat for each line x in fld "audioList" # nee