Buzz,
Concatenating the "text" of members will discard all formatting AND links. I
need to preserve both. That's where the problem is.
I've now devised a routine that goes through all hyperlinks for each individual
member and recreates them at the appropriate points in the new, concatenated
member. But this means running the repeat loop twice and is pretty slow.
What I'm looking for is ether A) a property of a text member that can be
concatenated with another member's without losing formatting and links or B) a
way to "fix" the way Director mishandles several characters in the 128-255
range when representing them in the member's HTML property.
Thanks for thinking about it.
Slava
At 01:53 PM 5/28/05 -0700, you wrote:
>At 4:02 PM -0400 5/28/05, you wrote:
>>I need to concatenate several text members into one new member.
>
>did you try?
>
>holder = ""
>repeat with CurrMem in locMemList
> holder = holder & CurrMem.text
>end repeat
>newMember = new(#text)
>newMember.text = holder
>
>hth
>-Buzz
>
>>
>>The script below works, but all hyperlinks in the text are lost:
>>
>>repeat with CurrMem in locMemList
>> member("NewMem").rtf = member("NewMember").rtf && member("CurrMemr").rtf
>>end repeat
>>
>>I suppose the rtf of member doesn't know anything about hyperlinks.
>>
>>This other script does preserve the hyperlinks, but messes up many of the
>>characters in the 128-255 ANSI range:
>>
>>repeat with CurrMem in locMemList
>> member("NewMem").html = member("NewMember").html && member("CurrMemr").html
>>end repeat
>>
>>For example, try putting the smart quotes (dec 132 and 148) into a text
>>member and then trace the member's HTML: you'll see that they are represented
>>by HTML entities Ñ and Ó respectively (in Windows). Now try this:
>>
>>member(1).html = "<html><head><title></title><body>Ñ
>>Ó</body></html>"
>>
>>and you'll see very different characters in the member's text, not the smart
>>quotes.
>>
>>Director does this with several other characters in the upper-ANSI; they do
>>not survive the round trip in the HTML property.
>>
>>How can I accomplish what I want?
>>
>>Thanks,
>>
>>Slava
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]