Transferring htmlText via a chunk descriptor

Mark Swindell mdswindell at charter.net
Fri Feb 25 01:05:16 CST 2005


Thanks, Scott.  Can this same thing be accomplished without naming the 
chunk explicitly, as in... the HTMLText of value(linesToShow)...?  
(That didn't seem to work, which is why I asked the list.)

The chunks I pick up are sections from a much longer text field which 
are delimited by markers placed at beginning and end points to coincide 
with  "pages."  Maybe this isn't the most efficient way to do it, but I 
can edit these fields easily...  I just need to access them as HTMLText 
via the variable which stores the chunk info.  I can get the text 
easily enough this way, but not the formatting.

Mark


On Feb 24, 2005, at 10:30 PM, Scott Rossi wrote:

> Recently, Mark Swindell  wrote:
>
>> What would the correct syntax be to achieve the following...
>>
>> I have a section of formatted text in a field on card 2 that I want
>> exported to another field on card 1.  The line I want to execute is
>> something like the following:
>>
>> set the htmlText of field "originalText" of cd 1 to  
>> value(linesToShow)
>>
>> ...where linesToShow = (line 2 to 10 of field 1 of cd 2)
>
>  put the HTMLtext of line 2 to 10 of fld 1 of cd 2 into tData
>  set the HTMLtext of fld "originalText" of cd 1 to tData
>



More information about the use-livecode mailing list