How can a user pick a date from a calendar with LC? - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How can a user pick a date from a calendar with LC? - Solved
I need the user to be able to pick a future date from a calendar? I have looked around and have not found any good examples and nothing in the dictionary.
How can this be done with LC?
Thanks,
David
How can this be done with LC?
Thanks,
David
Last edited by DR White on Fri Jan 08, 2016 3:54 pm, edited 1 time in total.
Re: How can a user pick a date from a calendar with LC?
Hi David,
go here: http://revonline.runrev.com and search for calendar.
I am sure there will be a couple of example stacks.
Best
Klaus
go here: http://revonline.runrev.com and search for calendar.
I am sure there will be a couple of example stacks.
Best
Klaus
Re: How can a user pick a date from a calendar with LC?
Klaus,
Is there a way that I can launch the native android calendar picker?
Is there a way that I can launch the native android calendar picker?
Re: How can a user pick a date from a calendar with LC?
Sorry, no idea...
Re: How can a user pick a date from a calendar with LC? - So
Klaus,
Sorry to bother anybody.
Dummy Me!
I am just old school.
I forgot that everybody uses "Date Pickers" now, and I did find some good examples of LC "Pickers".
Thanks,
David
Sorry to bother anybody.
Dummy Me!
I am just old school.
I forgot that everybody uses "Date Pickers" now, and I did find some good examples of LC "Pickers".
Thanks,
David
Re: How can a user pick a date from a calendar with LC? - So
Hi David,
great you found something, mobile is not my world, I'm also way too old school
Best
Klaus
great you found something, mobile is not my world, I'm also way too old school
Best
Klaus
Re: How can a user pick a date from a calendar with LC? - So
Calendar pickers still need to be coded around for dates prior to 1970 on Windows. And don't say this is a "bug" on Windows. It can be coded around in script, why can't the coding around be done in the engine?
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How can a user pick a date from a calendar with LC? - So
Not specific to Windows; Linux works the same way.SparkOut wrote:Calendar pickers still need to be coded around for dates prior to 1970 on Windows. And don't say this is a "bug" on Windows. It can be coded around in script, why can't the coding around be done in the engine?
And apparently Mark Waddingham agrees with you that it would be ideal to handle this in the engine:
http://quality.livecode.com/show_bug.cgi?id=4941
In the meantime, Malte's library can handle that and much more:
https://github.com/derbrill/libdate
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How can a user pick a date from a calendar with LC? - So
Yes, I know both of those. But the date of Mark's bug report doesn't inspire much hope that it will ever be fixed.
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How can a user pick a date from a calendar with LC? - So
Maybe. In practical terms this only affects a somewhat narrow range of edge cases (indeed that's how the OSes have been able to survive so long without providing extended date support in their APIs), and with LiveCode the community has stepped up to fill the gap with libraries for this, most recently Malte's.SparkOut wrote:Yes, I know both of those. But the date of Mark's bug report doesn't inspire much hope that it will ever be fixed.
So yes, it'll be great when the more urgent priorities that require engine modification are done (Cocoa and Unicode were huge tasks, and now 64-bit OS X and the Builder extensibility subsystem are big tasks too), but in the meantime anyone needing to handle extended date ranges on all supported platforms can do so, thanks to community members like Malte.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How can a user pick a date from a calendar with LC? - So
I'm not sure I agree that date of birth handling is an edge case, but yeah. Still, engine refactoring and all the big projects were never even heard of when the bug was recorded. So I guess it will be workarounds required for the future too.