O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating date and time pickers

Make another test-rig stack, which we'll use to try out some date and time pickers.

  1. Create a new Mainstack, name it ReminderFunctions, and save the stack.
  2. Add two fields and two buttons.
  3. Name one field dateinseconds and the other timeinseconds.
  4. Name the buttons Pick Date and Pick Time.
  5. Set the script of the Pick Date button to the following:
    on mouseUp
       mobilePickDate "date"
       put the result into tDate
       convert tDate to seconds
       put tDate into field "dateinseconds"
    end mouseUp
  6. Set the Pick Time button script to this:
    on mouseUp
       mobilePickDate "time"
       put the result into tTime
       convert tTime to seconds
       put tTime into field "timeinseconds"
    end mouseUp
  7. Set the Standalone Application Settings, so that you can test ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required