Some strange Rev parsing problem?
Cubist at aol.com
Cubist at aol.com
Thu Jan 29 08:49:24 EST 2004
sez doug at webcrossing.com
>So it seems there is a Rev parsing bug involving "the last line" in my
>first attempt.
>
>I guess the workaround is either to use htmlText like I ended up doing
>or finding the number of lines first, as in:
>
>put the number of lines of field "chatField" into nLines
>set the textStyle of word 1 of line nLines of field "chatField" to bold
Or you could do that in one command (mind the line-wrap!):
set the textStyle of word 1 of line (the number of lines of field
"chatField") of field "chatField" to bold
The two-line version is clearly preferable if you *also* do *other* things
with the last line of the field; otherwise, which way to go is a matter of
taste.
More information about the use-livecode
mailing list