calculating on exit field

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
Glenn Boyce
Posts: 137
Joined: Thu Jul 24, 2008 11:22 pm

calculating on exit field

Post by Glenn Boyce » Tue Aug 05, 2008 6:37 am

I have 2 flds that are used in a calculation. I am using closefield on one with the calculation script. if I change that field it recalculates - this is good. If I change the other field it doesn't. I tried sending a closefield from that field to the other one but still doesn't work. I know there will be a silly little routine for this

any assistance appreciated.

Glenn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Aug 05, 2008 9:28 am

Hi Glenn,

You can put the closeField handler in the card script. This will catch all closeField message and allows you to re-calculate the values whenever a field changes.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply