jbv:
> how can I know for certain that the selection is in italic ?
> I tried : char 5 to 7 of the HTMLtext of field x
> but it returns : "bc "
Watch the word order in syntax! Different results.
Here's how it works:
put the HTMLtext of char 5 to 7 of field x
-- or --
put the HTMLtext of the sel
You would normally do something like
put the selectedchunk
-> char 5 to 7 of field 1
put the textstyle of the selectedchunk
--> italic
if the specified chunk has mixed textstyle, you get an empty result
put the textstyle of char 3 to 5 of field 1
-->.