home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / database / 1410 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.1 KB

  1. Path: sparky!uunet!portal!lll-winken!cert!netnews.upenn.edu!dsinc!cs.widener.edu!hela.iti.org!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!wb1o+
  2. From: wb1o+@andrew.cmu.edu (William Matthew Beaver)
  3. Newsgroups: comp.sys.mac.databases
  4. Subject: 4D: Assigning Unique Integers
  5. Message-ID: <IeyNLli00UhW05rJoR@andrew.cmu.edu>
  6. Date: 5 Nov 92 21:45:21 GMT
  7. Organization: Senior, Social & Decision Sciences, Carnegie Mellon, Pittsburgh, PA
  8. Lines: 15
  9.  
  10. Is there a way to assign a unique integer to a field outside of the #N
  11. comand in the layout editor?  I have no problem creating the Unique
  12. number with #N in the default value box for the field in the layout. 
  13. The problem occurs when I create a record in a script, assign different
  14. values, save the record, and then display it with Display record.  The
  15. value doesn't get asigned in default if I save the record beore I
  16. display it.  I cannot do the assignment in the script either.  I get an
  17. error when I say [Project]Project_Num:=(#N). Is there another comand for
  18. this?
  19.  
  20. Any ideas are very welcome.
  21.  
  22. Thanks in advance,
  23. William Beaver
  24. Carnegie Mellon University
  25.