home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / 8550 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!almserv!mimas!g9utxu
  3. From: g9utxu@fnma.COM (Tanin Uthayanaka)
  4. Subject: Re: Clipper...Set Unique On/Off
  5. Message-ID: <1992Dec17.142157.6420@almserv.uucp>
  6. Sender: usenet@almserv.uucp
  7. Nntp-Posting-Host: mimas
  8. Reply-To: g9utxu@fnma.COM
  9. Organization: Fannie Mae
  10. References: <18587@mindlink.bc.ca>
  11. Date: Thu, 17 Dec 1992 14:21:57 GMT
  12. Lines: 35
  13.  
  14. In article 18587@mindlink.bc.ca, John_Carson@mindlink.bc.ca (John Carson) writes:
  15. >It has come to my attention on a client program that SET UNIQUE ON/OFF can be
  16. >the start of corrupted index files. I assume that if you SET UNIQUE once with
  17. >the database you must all the time. If at some location in the .PRG'S it
  18. >isn't....trouble begins. I have not searched this out yet but will be
  19. >checking into it today.
  20. >
  21. >Has anyone else had this problem?
  22. >
  23. >What pseudo code do you suggest do to solve duplicate records without using
  24. >this SET UNIQUE ON/OFF.
  25. >
  26. >John
  27. >
  28. >--
  29. >>>>>>>>>>>>>>>>>>>> John_Carson@MINDLINK.BC.CA <<<<<<<<<<<<<<<<<<<<<
  30. >>>        D.John Carson    J & H Concepts   (604)589-5118         <<
  31. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  32.  
  33. John,
  34.  
  35.     If you are saying that some location in your .PRG is not setting unique on, 
  36. then why don't you modify that .PRG (if you know which .PRG) to check for set unique 
  37. (i.e. lUnique:=SET(_SET_UNIQUE)) and reset it. But if you do need to set unique off, 
  38. that should not cause any problems either because all set unique does is modify the 
  39. index header file at location 277 to 1.
  40.  
  41.     Now...if you want to simulate a set unique, you could probably do so with 
  42. #command SKIP (your user define statement). You may also need to modify other 
  43. clipper commands (i.e. INDEX ON) to simulate SET UNIQUE.
  44.  
  45.     Hope this helps.
  46.  
  47. Tanin
  48.  
  49.