home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!gumby!destroyer!ncar!stout.atd.ucar.edu!urban
- From: urban@stout.atd.ucar.edu (Art Urban (PROFS))
- Subject: Re: Validating Data Entry in a Field
- Message-ID: <1992Aug19.145519.19724@ncar.ucar.edu>
- Sender: urban@stout.atd.ucar.edu
- Organization: Atmospheric Technology Division/NCAR Boulder, CO
- References: <1992Aug18.215256.1379@ncar.ucar.edu>
- Date: Wed, 19 Aug 1992 14:55:19 GMT
- Lines: 32
-
- In article <1992Aug18.215256.1379@ncar.ucar.edu> hpoppe@ncar.ucar.edu (Herb Poppe) writes:
- %The problem is that there is no way (that I have found) to force the
- %cursor back into the field using the closeField (or exitField) handler. It
- %seems to me that I am going to have to trap every mouseUp sent to the card
- %or button and every openField sent to other unlocked fields as a result of
- %clicking outside of the field in error. That handler (in the card) will
- %have to check if there is an error pending in a field. If there is, it
- %will put the insertion point back in that field. If not, it will send a
- %"myMouseUp" message back to the target of the mouse click. Similarly for
- %openField.
- %Herb Poppe National Center for Atmospheric Research (NCAR)
-
- Hmm, okay. I realize that since I can't actually see your stack, perhaps
- you could use the select field syntax.
-
- on exitField
-
- put the short name of me into thisFld
- if me is empty then select fld thisFld
-
- end exitField
-
-
- If I was actually near a Mac with HyperCard I would actually try this. Since
- I'm not, I guess it's left as an exercise for the reader... :)
-
-
- --
- Art Urban urban@stout.atd.ucar.edu
- ===============================================================================
- "What's Next? Chasing bunnies on a motorbike until their hearts explode? -Crow
- ===============================================================================
-