Programming multi line selections
Signe Marie Sanne
Signe.Sanne at roman.uib.no
Thu Jul 7 02:22:34 EDT 2005
Rob Beynon skrev:
> Colleagues,
>
> I have a small problem that is driving me nuts..
>
> I have a series of lines in a field, and I want to program the
> selection of those lines according to the last character of the
> line...I wrote a button script thus...
>
> on mouseUp
> select empty
> put 0 into LineNo
> repeat for each line peptide in card field "audit"
> add 1 to LineNo
> if char(length(peptide)-1) of peptide = "K" then select line LineNo of field "audit"
> end repeat
> end mouseUp
Try
if char -1 of peptide = "K" then select line LineNo of field "audit"
--
Signe Marie Sanne
1. amanuensis/Senior lecturer
Romansk institutt Tlf. +47 55 58 21 27
Øisteins gt. 1 Epost: signe.sanne at roman.uib.no
Universitetet i Bergen
http://www.hf.uib.no/mlab/Info/sms.html
More information about the use-livecode
mailing list