Page 1 of 1

copy linked text

Posted: Wed Mar 23, 2011 10:06 pm
by Preston Shea
how do I script the copying of text in field of one stack to field in another stack keeping formatting of link text etc.?

Re: copy linked text

Posted: Wed Mar 23, 2011 10:11 pm
by mwieder
get and set the htmltext of the field instead of just the text of the field.

Re: copy linked text

Posted: Thu Mar 24, 2011 12:22 am
by Preston Shea
Great! and thanks. Now for a dumb question:
how do I get the text to display as formatted instead of with <tags>?

Re: copy linked text

Posted: Thu Mar 24, 2011 3:16 am
by mwieder
Sorry - I should have been more explicit...

-- get the htmltext of the source field into a variable
put the htmltext of field 1 into tHTMLText

-- then store it into the destination field
set the htmltext of field 2 to tHTMLText

Re: copy linked text

Posted: Thu Mar 24, 2011 2:09 pm
by Preston Shea
Thanks again.
Preston Shea