Text field respond to carriage return

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

Post Reply
bard
Posts: 2
Joined: Tue Apr 11, 2006 12:58 pm
Contact:

Text field respond to carriage return

Post by bard » Tue Apr 25, 2006 3:05 pm

I've built several basic programs to suit certain needs and I tend to learn things as I go along. Now I want to build a program that can respond to typed text in a simple input field. For example, if the user typed "start", then pressed enter, text on the screen would change, etc.

But alas, I've hit a roadblock and can't find help in the documentation (unsure what to look for, really). So if anyone can point me in the right direction I would appreciate it greatly!

Thanks!

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Tue Apr 25, 2006 3:08 pm

Hi bard,

look for the enterInField and returnInField messages in the dictionary.

for example (in the fields script)

Code: Select all

on enterInField
  beep
  --do some useful stuff here
end enterInField

on returnInField
  enterInField
end returnInField
Hope that helps,

Malte

bard
Posts: 2
Joined: Tue Apr 11, 2006 12:58 pm
Contact:

Post by bard » Wed Apr 26, 2006 2:26 am

Aah, excellent. Many thanks, malte!
http://www.bardinelli.com/

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”