home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / 8726 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!gateway
  2. From: mahadeva@chimi.engr.ucdavis.edu (Vimalan Mahadevan)
  3. Newsgroups: comp.databases
  4. Subject: two foxpro questions
  5. Date: 30 Dec 1992 12:59:07 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 21
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <9212301852.AA11765@chimi.engr.ucdavis.edu>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12. I am writing a data entry program program uising FoxPro and plan on writing
  13. aWindows based retrieval program in C.  I have been told that when doing
  14. this I must make sure that all my fields are of type character; using the date
  15. or numeric field types will just add to job when writing the C retrieval 
  16. program. 
  17.  
  18. But I want to be able to filter the data entries being entered using numeric
  19. fields and the >,< operations.  This leads me to my questions.
  20.  
  21. 1)  If I have a character field five chars long and the user enters 235.  I want
  22. the program to automatically make that 00235 so I can sort.  But I don't want
  23. to display the leading zeroes unless I have to.
  24.  
  25. 2)  Supposing you  have a field which contains the middle initial of a person.
  26. I don't want the user to have to enter the period after the initial.  How
  27. can the program be instructed to automatically enter a period after the user
  28. enters the letter?
  29.  
  30. Thanks,
  31.  
  32. Vim
  33.