Hi Craig, The answer dialog window checks if the text contains html tags (must start with <p> and </p>) and if it does, it interprets it as htmlText, which makes the tags fo away :-) Try this:
answer "<p><b>This is bold</b><i> and this is italics</i></p>." -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 5 nov 2012, at 00:26, [email protected] wrote: > > > Make one field and one button. In the field, type a few words, and set the > textstyle to one of them to "bold". > > > In the button: > > > on mouseUp > get the htmlText of fld 1 > put it > answer it > end mouseUp > > > Where did the tags go? They appear in msg, and if you step through, "it" > seems fine. > But what did the "answer" command do to them? > > > Craig Newman _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
