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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Exponent in text field ?

Post by dunbarx »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Exponent in text field ?

Post by FourthWorld »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Exponent in text field ?

Post by dunbarx »

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

Glad that both methods will work for you.

Craig
Post Reply