Apostrophes

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

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9446
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Apostrophes

Post by richmond62 » Sat Mar 11, 2023 9:36 pm

I can do this:

Code: Select all

put quote after fld "ff"
and I get " - double quotes.

How do I get a single apostrophe?

Emily-Elizabeth
Posts: 101
Joined: Mon Jan 03, 2022 7:10 pm

Re: Apostrophes

Post by Emily-Elizabeth » Sat Mar 11, 2023 9:47 pm

Code: Select all

put "'" after fld "ff"

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9446
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Apostrophes

Post by richmond62 » Sat Mar 11, 2023 9:53 pm

Indeed, so I wonder why it did not work with me just now?

Thanks for bopping me on the nose. :D

I did this:

Code: Select all

put numToCodePoint(39) after fld "ff"

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9743
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Apostrophes

Post by dunbarx » Sun Mar 12, 2023 11:47 pm

Richmond,

Perhaps you were not clear in your post. Is there already text in that field with the last character being quote?

I assume so, but then why do you find it odd that your line of text appends another one? Quotes are just characters. Try doing it ten times. Lots of quotes...

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9446
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Apostrophes

Post by richmond62 » Mon Mar 13, 2023 6:52 am

No, I did not find appending quotation mark odd, but I had some difficulty appending an apostrophe.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9743
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Apostrophes

Post by dunbarx » Mon Mar 13, 2023 3:53 pm

Richmond.

What is your real issue here? An apostrophe (ASCII 39) is also just a character, like any other. Why can't you place one wherever you want to?

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”