I feel like a fool...

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

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: I feel like a fool...

Post by Peter K » Mon Apr 18, 2011 3:11 am

I just figured out the difference between returnInField and closeField. closeField does what I want it to do. It allows me to use the tab key and return key.

When the error message is keyed off (i.e. no2 is greater than no1) the system puts me back to the first data entry item in the system, not the data entry for field no1 (which is the sixth data entry item in the system).

I'm sure that the issues that I'm having trying to create this data entry screen are not unique. But I wish that there was a New York users group because I'm sure that if I sit down with someone I could go through all of this in less than an hour.

Peter

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10319
Joined: Wed May 06, 2009 2:28 pm

Re: I feel like a fool...

Post by dunbarx » Mon Apr 18, 2011 4:25 pm

There are many, many messages. Think of what goes on when you go to click a mouse in a button:

The mouse moves. (mouseMove)
It enters the button. (mouseEnter,mouseMove)
It lives in the button (mouseWithin)
You click down (mouseDown)
You hold down,even if only for the usual instant. (mouseStillDown)
You release the click (mouseUp)
You are still in the button (mouseWithin)
You exit the button (mouseMove,mouseLeave)
You move away (mouseMove)

More messages than you thought?

The only way to learn is to play. Try doing things in different ways. In fact, the dictionary is pretty complete and helpful, and do not fail to read about the "see also" stuff for each entry. They are related, and frequently are more suited to your needs. For example, read about the difference between "closeField" and "exitField". I live in New York City. I used to chair the NY Hypercard user group. I would be glad to attend an LC group.

Craig Newman

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: I feel like a fool...

Post by mwieder » Mon Apr 18, 2011 4:52 pm

Peter-

The "put" command is the assignment operator, and works much the same way assignment operators work in any other language, i.e.,

x = 3
myVariable = fieldOne.text

Part of its power comes from the fact that you can use expressions on either side of the clause separator:

put the label of button "myComboBox" after word 3 of field "LotsaText"
put SomeFunction(withParameters) into someArray[someElement]

Post Reply