How many days until ...

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: heatherlaine, Klaus, FourthWorld, kevinmiller

Klaus
Posts: 10388
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How many days until ...

Post by Klaus » Thu Jul 12, 2018 5:14 pm

Jaques, please give him a chance! :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4662
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How many days until ...

Post by jacque » Thu Jul 12, 2018 5:43 pm

Sorry. At least I didn't post a script.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 10388
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How many days until ...

Post by Klaus » Thu Jul 12, 2018 5:53 pm

HA, touché! :-)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5569
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How many days until ...

Post by dunbarx » Thu Jul 12, 2018 6:17 pm

The dateItems is really a terrific gadget. Try this:

Code: Select all

on mouseUp
   get the date
   convert it to dateitems
   add 10000 to item 4 of it  -- or   subtract 10000 from item 4 of it
   convert it to date
   answer it
end mouseUp
You can use this sort of thing to go forward or back in time. In fact, you might play around with the above, but:

Code: Select all

 get the time
 ...
Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”