home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / database / 1787 < prev    next >
Encoding:
Text File  |  1993-01-24  |  812 b   |  27 lines

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!cunews!freenet.carleton.ca!Freenet.carleton.ca!aa192
  3. From: aa192@Freenet.carleton.ca (Graydon Patterson)
  4. Subject: Re: 4D Field Incrementing
  5. Message-ID: <1993Jan24.020602.20467@freenet.carleton.ca>
  6. Sender: news@freenet.carleton.ca (News Administrator)
  7. Organization: National Capital Freenet, Ottawa, Canada
  8. Date: Sun, 24 Jan 1993 02:06:02 GMT
  9. Lines: 21
  10.  
  11.  
  12. Here is the standard procedure I use to create unique ID's..
  13. `    NextID
  14. $0:=[NextID]ID
  15. [NextID]ID:=[NextID]ID+1
  16. SAVE RECORD([NextID])
  17. `    end script
  18.  
  19. To obtain a unique ID in any file use the following...
  20. [Clients]Client Number:=NextID    ` NEXTID being a function
  21.  
  22. The NextIF file has only one field called ID and only one
  23. record, the next ID to be called.
  24. (pardon my typos)
  25. -- 
  26.  
  27.