Hi all,
With mobilePickdate on Android platform, Sep 01, 1914 and Sep 01, 2014 and it returns same value of 9/01/14.
Is there any way to get a four digit year value on both ios and android?
Cheers,
Louis
mobilePickdate problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: mobilePickdate problem
Hi Louis,
That is funny, because the documentation says it should return a value in seconds rather than a date. Could you post your entire script?
Mark
That is funny, because the documentation says it should return a value in seconds rather than a date. Could you post your entire script?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: mobilePickdate problem
Hi Mark,
This is the script,
Internet date supposed to give four digit year value I think.. but it doesn't.
Anything wrong with this script?
Cheers,
Louis
This is the script,
Code: Select all
local tDateResult
on mouseUp
mobilePickDate "date"
put the result into tDateResult
convert tDateResult from seconds to internet date
put tDateResult into field 1
end mouseUp

Anything wrong with this script?
Cheers,
Louis
Re: mobilePickdate problem
Hi Louis,
Nothing is wrong with your script. Apparently, the date picker doesn't return the seconds but a date in the format mm/dd/yy. Probably, this is okay for dates after 1 Jan. 1970 but not for earlier dates. I think this is a bug in LiveCode.
Kind regards,
Mark
Nothing is wrong with your script. Apparently, the date picker doesn't return the seconds but a date in the format mm/dd/yy. Probably, this is okay for dates after 1 Jan. 1970 but not for earlier dates. I think this is a bug in LiveCode.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: mobilePickdate problem
Hi Mark,
Thanks for clarifying that it was a bug. I decided to use mobilePick instead of mobilePickdate. but it looks not as fancy as a wheel type native date picker. It's just plain field with list of contents...Can I change it to any other style? also I have a problem with cancel button.. I like to exit mouseUp upon user press a cancel button but it seems not working with my script.
Cheers,
Louis
Thanks for clarifying that it was a bug. I decided to use mobilePick instead of mobilePickdate. but it looks not as fancy as a wheel type native date picker. It's just plain field with list of contents...Can I change it to any other style? also I have a problem with cancel button.. I like to exit mouseUp upon user press a cancel button but it seems not working with my script.
Code: Select all
on mouseUp
mobilePick tMonths, tInitialIndex,"cancel"
if it is "cancel" then
put empty into tDateResult
put empty into field 1
exit mouseUp
end if
put the result into tDateResult
put tDateResult into field 1
end mouseUp
Louis