Missing Chunk Scripting Issue - Now Resolved
Barry Levine
themacguy at macosx.com
Sat Dec 18 19:45:25 EST 2004
Richard,
Your solution worked perfectly and reduces the amount of code I need. Can't
ask for more than that! Totally agree with you regarding readability; in
fact, my handlers often have as many comments as code. Helps me to remember
what th'heck I was thinking when I wrote it!
Many thanks & Happy Holidays!
Barry
On 12/18/04 5:20 PM, "Richard Gaskin" allegedly flung into the void:
> You can use "-1" instead of getting the last char to shorten it a tad.
>
> When in doubt you can often use parentheses to make things explicit for
> the compiler:
>
> put (char -3 to -1 of (line 1 of fld "result")) into tLast
>
> The outer-most parens are probably overkill, but in general parens are
> useful not only for the compiler but sometimes for aiding readability
> too. The outer parens make it clear what's being "put", and the inner
> parens help break the first parsing operation from the second.
>
> Let me know if that doesn't do it and we'll look into it more.
>
> --
> Richard Gaskin
More information about the use-livecode
mailing list