[SOLVED] Syntax for decimal keyboard and done iOS

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
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

[SOLVED] Syntax for decimal keyboard and done iOS

Post by anmldr » Mon Sep 17, 2012 4:36 pm

Newbie syntax problem I am sure. This does not work for me for a text field. The standard ABC keyboard appears.

Code: Select all

on openField
   set iphoneSetKeyboardType decimal
   set iphoneSetKeyboardReturnKey done
end openField
Linda

P.S. I hope that I don't wear out my welcome here!
Last edited by anmldr on Thu Sep 20, 2012 3:26 pm, edited 1 time in total.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Syntax for decimal keyboard and done iOS

Post by Klaus » Mon Sep 17, 2012 4:39 pm

Hi Linda,

try with QUOTES and "numeric" instead of "decimal" (go figure, I found this in the LC dictionary! 8) ):
...
set iphoneSetKeyboardType "numeric"
set iphoneSetKeyboardReturnKey "done"
...

Still welcome! :D



Best

Klaus

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Syntax for decimal keyboard and done iOS

Post by anmldr » Mon Sep 17, 2012 8:27 pm

It was the quotes that I was missing. But, "decimal" is a different keyboard than the "numeric" one. I was wrong about the "done" though because there is no place for the "done" area on the decimal keyboard.

Thanks,
Linda

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Syntax for decimal keyboard and done iOS

Post by Klaus » Mon Sep 17, 2012 10:10 pm

Hi Linda,
anmldrBUSua9K wrote:But, "decimal" is a different keyboard than the "numeric" one.
yes, sorry, my fault, of course you are correct!


Best

Klaus

Post Reply