Hi to all LC users
I want to use a numerical keyboard if the platform is "mobile"
The instruction is SetMobileKeyboardType to "numerical"
I put this command in two handlers: PreOpenStack and OpenCard. It works and now without changing NOTHING, I have the alpha keyboard again, which I do not want to have
Do you know where I should put this instruction:
- Stack
- Card
- or field
Thank you for your help
Mobile keyboard
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Mobile keyboard
Hello ameguira,
You should use the following line:
Best,
Panos
--
You should use the following line:
Code: Select all
mobileSetKeyboardType "numeric"
Panos
--
-
- Posts: 22
- Joined: Mon Apr 18, 2016 4:57 pm
Re: Mobile keyboard
Hello Panos
Thank you for your response
This is exactly what I have used (my post was wrong about the command but my code was right)
Regards
Albert MEGUIRA
Thank you for your response
This is exactly what I have used (my post was wrong about the command but my code was right)
Regards
Albert MEGUIRA
-
- Posts: 22
- Joined: Mon Apr 18, 2016 4:57 pm
Re: Mobile keyboard
Hi All
The solution is not to write
if the platform is "mobile"
then MobileSetKeyboard "numeric"
but
if the environment is "mobile"
then MobileSetKeyboard "numeric"
It works and don't ask me why...
Hope this will help other
Albert
The solution is not to write
if the platform is "mobile"
then MobileSetKeyboard "numeric"
but
if the environment is "mobile"
then MobileSetKeyboard "numeric"
It works and don't ask me why...
Hope this will help other
Albert
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Mobile keyboard
Hi Albert,
Oh I see. The "platform" returns the name of the operating system LiveCode is running on, so it cannot return "mobile". In this case it returns either "iPhone" or "Android".
Best,
Panos
--
Oh I see. The "platform" returns the name of the operating system LiveCode is running on, so it cannot return "mobile". In this case it returns either "iPhone" or "Android".
Best,
Panos
--