home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3152 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.2 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!sdd.hp.com!decwrl!deccrl!bloom-beacon!eru.mt.luth.se!lunic!sunic!kth.se!bengtb
  2. From: bengtb@stacken.kth.se (Bengt Baverman)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: Validating Data Entry in a Field
  5. Message-ID: <1992Aug19.094151.16710@kth.se>
  6. Date: 19 Aug 92 09:41:51 GMT
  7. References: <1992Aug18.215256.1379@ncar.ucar.edu>
  8. Sender: bengtb@alex.stacken.kth.se (Bengt Baverman)
  9. Organization: Stacken Computer Club, Stockholm, Sweden
  10. Lines: 16
  11. Nntp-Posting-Host: alex.stacken.kth.se
  12.  
  13.  
  14. I think the best way to handle this in Hypercard is to do what the "Valid
  15. Entry Package" does [this can be found on Apple's Developer CDs]: It assumes
  16. that the original value in a field is valid and saves this at openField time.
  17. When the user exits from the field, generating a closeField, the validity of
  18. the current value is checked. If the value is not valid it is replaced with 
  19. the old, valid, value and the user is alerted.
  20.  
  21. Check out the Valid Entry Package if you have access to it. It is very well
  22. written by Chris Thorman, Apple Computer, Inc.
  23.  
  24. Bengt Baverman
  25. bengtb@alex.stacken.kth.se
  26. -- 
  27. Bengt Baverman
  28. bengtb@alex.stacken.kth.se
  29.