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

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

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.

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

2018-08-23 Thread Ralph DiMola via use-livecode
What would be very convenient would be an "index" option for the repeat construct. I have to add this index counter all the time. Repeat for each line tLine in tLines index tIndex tIndex would start at 1 and increment by 1 for each iteration. Ralph DiMola IT Director Evergreen Information

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:

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

2018-08-23 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 > >

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" #

Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Sannyasin Brahmanathaswami via use-livecode
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" which does not return the number of the line, but value command setAudioListColors pLineNum,pColor # pass "4,"0,0,0" #slow! repeat with x=1 to (the