unhilite line in list field

betypaul betypaul at arvotek.net
Thu Dec 23 11:06:04 EST 2004


Hi Paul,

> Hi
> My script has a list field where each selection is utilized in turn.
> I would like the selection to be unhilited in turn after it is
> utilized,
> so that as the repeats are worked through the highlights turn off.
> Possible?
> This doesn't work --
>
> repeat for each line mychoice in the selectedText of fld "mylistfield"
> 	doSomething
> 	unhilite mychoice of the selectedText of fld "mylistfield"  -- ?????
> end repeat
>
> but, has anyone  found a way to do this?

Just to see if i get you right:

You want to "unhilite" ALL lines AFTER you did something with the
hilited lines?

Sorry I wasn't clear
I want to unhilite EACH line after something is done with that 
particular line .
The highlights would go off one after the other as the repeats are 
worked through, thus indicating to the user the progress of the 
process.
Probably not possible. I thought I would throw it out
Paul

The you can:

...
repeat for each line mychoice in the selectedText of fld "mylistfield"
	doSomething
end repeat
set the hilitedlines of fld "mylistfield" to 0
...

If that's not what you were after, drop another line :-)

> Seasons greetings to you all
>
> Paul

Regards

Klaus Major


More information about the use-livecode mailing list