Flag a change

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
a-revuser
Posts: 23
Joined: Fri Dec 04, 2009 10:23 am

Flag a change

Post by a-revuser » Sat Feb 27, 2010 5:05 pm

I wonder if there is a simple way to flag a change in input etc. other than setting a flag at every script.

Typically this would be where a value is changed by the user, a "recalculate" or "save" or some other process must follow so the user does not overlook the requirement.

I suspect the change in the field triggers a message in REV, if so, how can this be utilised (a code snippet would be great)
I am sure most developers have solved this and newbies would benefit from the tip.

I would!

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: Flag a change

Post by Janschenkel » Sun Feb 28, 2010 9:26 am

For fields, you can always handle the closeField message, which is sent when the user has changed the content of a field and leaves it (by tabbing out of it or clicking on another field) - but this doesn't help when the text is changed by a script, so you'll still have to set the flag yourself from there.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

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

Re: Flag a change

Post by dunbarx » Tue Mar 02, 2010 8:45 pm

Also check out the "exitField" message, sent when the user leaves the field, but when nothing has changed.

Craig Newman

Post Reply