@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
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
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
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
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
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
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
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
>
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
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 numb
10 matches
Mail list logo