MobilePickDate

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
GoneToSail
Posts: 49
Joined: Sun Jan 24, 2010 10:34 pm

MobilePickDate

Post by GoneToSail » Sun Nov 04, 2012 7:39 pm

1. It seems that any call of the MobilePickDate function displays a pick wheel which is not aware of the twelveHourTime property ! For instance, even if the twelveHourTime property is set to false, the pick wheel displays something like 1 34 PM, and not 13 34. Is there any way to obtain a 24 h format ?

2. I also need that the MobilePickDate dialog can display the time with seconds, not only hours and minutes. For instance I would like to display a pick wheel like "Today 14 34 30" when it is 14 h 34 min 30 secs. Unfortunately I could not find the syntax to obtain this feature. Would anyone know the magic trick ?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: MobilePickDate

Post by jacque » Mon Nov 05, 2012 4:38 am

I thought iOS automatically displayed the pickwheel according to the user's date/time preference settings.

You could probably use the mobilePick command to set up a multi-column pick wheel that includes seconds. You could also use mobilePick to set up a time pickwheel that always uses 24-hour time, though unless your app depends on it, some users may not be very happy about that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

GoneToSail
Posts: 49
Joined: Sun Jan 24, 2010 10:34 pm

Re: MobilePickDate

Post by GoneToSail » Mon Nov 05, 2012 10:07 am

Thanks Jacqueline.
I did not know so well those "pick" functions, and I will follow your advice to use mobilePick instead.
And I hope that the twelveHourTime property will be taken into account by MobilePickDate in a future release...
Again, thanks for your quick reply !

Adrian
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 79
Joined: Wed Jul 11, 2012 5:03 pm

Re: MobilePickDate

Post by Adrian » Thu Nov 08, 2012 3:35 pm

One thing you always need to check is whether a particular command is supported on the platform you are developing for, as not all are. In this case, twelve HourTime is not supported on mobile platforms, as the Dictionary shows. (Presumably the reason for this is as Jacque says: the user's settings on the device determine the time frmat).

(For future reference, there is a specific forum for iOS and for Android, where questions like this should go).

Cheers,

Adrian

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

Re: MobilePickDate

Post by Klaus » Thu Nov 08, 2012 4:35 pm

For future reference, there is a specific forum for iOS and for Android, where questions like this should go.
Noone (except you :) ) actually cares about this fact, so I gave up giving hints and moving these threads to the corerect forum a couple of months ago... 8)

Post Reply