attaching "metadata" to a single character

Ken Ray kray at sonsothunder.com
Thu Sep 21 16:23:30 CDT 2006


On 9/21/06 12:37 PM, "Josh Mellicker" <josh at dvcreators.net> wrote:

> I might go the direction of experimenting with the htmlText of the
> field, to see if I can put custom tags in without affecting the
> display, and see if the tags care copied and pasted properly... but
> I'm not sure what dangers might arise if I mess with the htmlText too
> much.

It turns out you can use the "<a name=''></a>" property in HTML which sticks
around and doesn't affect screen display.

Consider:

put "<p>This is a <a name=" & quote & "Howdy!" & quote & ">Test</a><p>" \
   into temp
set the htmlText of fld 1 to temp

--> You see "This is a Test" in the field

put the htmlText of fld 1

--> You see:

<p>This is <a name="Howdy!">Test</a></p>


Will this do what you're looking for?

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list