Programming multi line selections
    Robert Brenstein 
    rjb at robelko.com
       
    Thu Jul  7 14:48:04 EDT 2005
    
    
  
>>Also, how do I deselect all lines before I start (select empty doesn;t
>>seem to achieve this).
>>
>Hi Rob,
>
>When you select a line in a repeat loop, only the last found line 
>will appear selected :-)
>Try to parse the lines by number and set the hilitedLines at the end:
>
>   put 0 into LineNo
>   repeat for each line peptide in card field "audit"
>   add 1 to LineNo
>   if char -1 of peptide = "K" then put LineNo & comma after tHilitedLines
>  end repeat
>  delete char -1 of tHilitedLines
>  set the hilitedLines of field "audit" to tHilitedLines
>
The script from Eric will automatically unselect previous selection 
but in case you want to clear all yourself
   set the hilitedLines of fld "audit" to empty
Robert
    
    
More information about the use-livecode
mailing list