Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!bbn!apple!rutgers!att!tellab5!kenk From: kenk@tellab5.tellabs.CHI.IL.US (Ken Konecki) Newsgroups: comp.sys.mac.hypercard Subject: Checking for field changes Message-ID: <1266@tellab5.tellabs.CHI.IL.US> Date: 7 Apr 89 12:53:30 GMT References: <1100@atux01.UUCP> <89096.04:03:29.AXS101@PSUVM> <1114@atux01.UUCP> Reply-To: kenk@tellab5.UUCP (Ken Konecki) Organization: Tellabs, Inc., Lisle, IL Lines: 28 In article <1114@atux01.UUCP> jlc@atux01.UUCP (J. Collymore) writes: > HOWEVER, I want to be able to have the field >sense either a mouseClick, or KeyClick so that it will be able to tell me when a >user has modified (i.e., tampered with a data in that field)! > >If anyone can tell me how to do this I would REALLY appreciate it. Thanks The easiest way to check for field changes is to have a closeField handler for the field: on closeField -- Do what you need to do when the field is changed end closeField. A good example is the address stack that comes with Hypercard. The address field has a closeField handler that puts the date in the date field, so the date of last change is part of the card. Of course, a closeField handler won't tell you that a field has actually changed. A person might have just clicked in the field, then changed her mind without modifying the text. Hypercard will still send a closeField message when the user clicks elsewhere on the card. Hope that helps, -Ken K -- Ken Konecki "A squeegee by any other name wouldn't sound as funny" e-mail:kenk@tellab5.UUCP -or- ...!uunet!tellab5!kenk U.S. Mail: 1271 Portchester Circle, Carol Stream, IL 60188