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