home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22155 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!udel!louie!pokey.cis.udel.edu!sethi
  3. From: sethi@pokey.cis.udel.edu (Adarshpal S Sethi)
  4. Subject: Reading numbers in TextEdit
  5. Message-ID: <1993Jan25.210950.22383@udel.edu>
  6. Sender: usenet@udel.edu (USENET News Service)
  7. Nntp-Posting-Host: pokey.cis.udel.edu
  8. Organization: University of Delaware, Newark
  9. Date: Mon, 25 Jan 1993 21:09:50 GMT
  10. Lines: 19
  11.  
  12.  
  13. I have a Modeless Dialog with a TextEdit field that I want
  14. to use to read in a number. I would like to disable any
  15. character that is not a numeric character from being entered.
  16. Is there a way of doing this? I couldn't see anything in
  17. IM that was helpful. In the worst case, can I get access
  18. to each character that is entered in a TextEdit field, then
  19. check if it is a numeric character, if not delete the
  20. character from the text being entered and continue?
  21. If there is a sample program available somewhere that can
  22. do this, that would be great (I'm using Think C 5.0), but
  23. I would appreciate any help at all, whether it is a general
  24. outline of how to do this, or pointers to specific places in
  25. IM.
  26.  
  27. Thanks,
  28.  
  29. Adarsh Sethi
  30. sethi@udel.edu
  31.