In the field, put a few words, and set the textStyle of one of the words to "bold".
Put this in the button:
Code: Select all
on mouseUp
get the htmlText of fld 1
put it
answer it
end mouseUp
Craig Newman
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
get the htmlText of fld 1
put it
answer it
end mouseUp
But I still do not see why "<b>" is reproduced faithfully, whereas "<p>" is not, as both are "start/end tag pairs".Comments:
The prompt can be either formatted text (in the htmlText property's format) or plain text. If the prompt contains p or a start/end tag pair, the answer command assumes the text is in the same format as the htmlText property. Otherwise, the answer command assumes the text is plain text.