Skip to main content
Known Participant
August 30, 2007
Answered

how to setTextformat start from "<" then end with ">" ?

  • August 30, 2007
  • 1 reply
  • 206 views
when everytime i received a word, example " Hi, my name is <alice>"

i want set the setTextformat to word between < and >

got any solution?
This topic has been closed for replies.
Correct answer Newsgroup_User
use 'indexOf' twice - once for the opening '<' and one for the closing '>'.
once you have the index of both of them, use the 'setTextFormat' with start
index and finish index.
you can find our more in the help files.

good luck,
eRez
www.allofme.com

1 reply

Newsgroup_UserCorrect answer
Inspiring
August 30, 2007
use 'indexOf' twice - once for the opening '<' and one for the closing '>'.
once you have the index of both of them, use the 'setTextFormat' with start
index and finish index.
you can find our more in the help files.

good luck,
eRez
www.allofme.com