Exponent in text field ?

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
sirobchGA0cda
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Wed Dec 21, 2011 10:42 am
Contact:

Exponent in text field ?

Post by sirobchGA0cda » Fri Nov 08, 2013 7:16 am

Hello,
it's possible to write a exponent in a field or a label ?
I have testing with copy and paste from word or page, but it's not possible to change the size in the textformating.
Thank you for your answer.
Best regards
Boris
My application "GeoMaths" is available on Itunes and Google Play !

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Exponent in text field ?

Post by dunbarx » Fri Nov 08, 2013 3:21 pm

Hi.

Do you mean to:

put "4^2" into fld "yourField"? (the "^" char, ASCII 94)

And then you can "answer the value of fld yourField"

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Exponent in text field ?

Post by FourthWorld » Fri Nov 08, 2013 5:02 pm

As with LaTex, Postscript, and other text formatting languages, you can shift the baseline of text in LiveCode as well - see the textShift chunk property in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

sirobchGA0cda
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Wed Dec 21, 2011 10:42 am
Contact:

Re: Exponent in text field ?

Post by sirobchGA0cda » Fri Nov 08, 2013 8:43 pm

Thank you all!
I can make the changes with "^" and edit the field with textShift. :D
Boris
My application "GeoMaths" is available on Itunes and Google Play !

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Exponent in text field ?

Post by dunbarx » Fri Nov 08, 2013 9:38 pm

Oh. That is what you meant by "exponent". A superscript.

Glad that both methods will work for you.

Craig

Post Reply