O'Reilly logo

LiveCode Mobile Development HOTSHOT by Edward D Lavieri Jr.

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

Creating the Add Record card and functionality

In this task, we will create an Add card so that users can add data to their database.

Engage Thrusters

  1. Add the following code to the Add button's script.
    on mouseUp
       go to card "Add"   
    end mouseUp
  2. Create a new card and name it Add.
  3. Drag a Label field onto the card Add and make the following customizations using the properties inspector:
    1. Set the width to 470 and the height to 36.
    2. Set the location to 239, 26.
    3. Set the name of the field to Title.
    4. Set the text size to 24.
    5. Center-align the text.
    6. Change the contents to Add Data to My Database.
    7. Set the foreground color to black.
  4. Drag a Rectangle Button onto the card and make the following customizations using the properties inspector:
    1. Set the width to 82 and the height to ...

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