2 questions: Looking at Rev menu scripts - command A

Ken Ray kray at sonsothunder.com
Fri Jan 24 15:41:01 EST 2003


Mark,

> BTW Could someone explain the logic behind this expression for me? (I
found
> it in a list search, and it seems to do the trick.)
>
>   case "Select All"
>     select line 1 to -1 of the target
>     break

This is intended for a currently open field, and it selects from the first
line to the last line of the target field (negative chunks are read from the
end of the container).

So for example:

  put char -3 to -1 of "My Picture.jpg"

puts "jpg" in the Message Box.

Hope this helps,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/




More information about the use-livecode mailing list