Using expressions with "<" and ">"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4016
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Using expressions with "<" and ">"

Post by bn » Sun Apr 30, 2023 9:04 pm

FourthWorld wrote:
Sun Apr 30, 2023 8:30 pm
IIRC the original rule for LC to treat Ask and Answer prompts as htmlText was to require what all htmlText has: "<p>" at the beginning and "</p>" at the end.
Resuming that rule would allow other uses.
If the rule has not formally changed perhaps this is a bug.
This is how the answer dialog decides:

Code: Select all

if "<p>" is in tText or matchChunk(tText, "<(.+>.+</.+)>") then set the htmlText of field 1 of me to tText
else set the text of field 1 of me to tText
Kind regards
Bernd

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Using expressions with "<" and ">"

Post by FourthWorld » Sun Apr 30, 2023 11:14 pm

Thanks, Bernd. Seems too inclusive for my tastes, but if that's the rule it's probably too late to change it now.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Using expressions with "<" and ">"

Post by mwieder » Mon May 01, 2023 1:15 am

Well, I can verify that code hasn't changed since at least as far back as v 7.0.4.
I'm guessing it's just always been that way.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”