Book Image

LiveCode Mobile Development Cookbook

By : Dr. Edward Lavieri
Book Image

LiveCode Mobile Development Cookbook

By: Dr. Edward Lavieri

Overview of this book

Table of Contents (17 chapters)
LiveCode Mobile Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Combining text


In this recipe, you will learn how to take two text values and combine them into one.

How to do it...

Follow this recipe's steps to take two user-entered bits of text and combine them into one:

  1. Create a new main stack in LiveCode.

  2. Set the background color of the stack's card to black.

  3. Add a first label with the following properties to the card:

    • Name: fldFirst

    • foregroundColor: Yellow

    • Contents: First Name

  4. Add a second label with the following properties to the card:

    • Name: fldLast

    • foregroundColor: Yellow

    • Contents: Last Name

  5. Add a third label with the following properties to the card:

    • Name: fldCombined

    • Width: 200

    • foregroundColor: Yellow

    • Contents: Combined Text

  6. Add a first text input field to the card with the following properties:

    • Name: firstName

    • foregroundColor: Black

    • backgroundColor: White

    • borderWidth: 0

  7. Add a second text input field to the card with the following properties:

    • Name: lastName

    • foregroundColor: Black

    • backgroundColor: White

    • borderWidth: 0

  8. Create a button named Combine.

  9. Layout...