home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!cs.utexas.edu!asuvax!ncar!csn!tpsrd!tps.COM!thomasd
- From: thomasd@tps.COM (Thomas W. Day)
- Subject: Foxpro 2.0 Index Searches
- Message-ID: <thomasd.62.726343853@tps.COM>
- Sender: news@tps.com (News Software)
- Organization: TPS
- Date: Wed, 6 Jan 1993 18:10:53 GMT
- Lines: 27
-
- I'm sure these are stupid questions, but the Fox manuals are no help.
- Several years ago (the Foxbase years) I was fairly good at this, I've lost
- it and don't know where to find it.
-
- Three questions:
-
- 1) How do you do a multiple field indexed SEEK? Meaning, I have an index
- that was created using three (3) fields, now I want to seek data on those
- fields. Everything I try seems to bring back EOF without locating any
- related data. A single field search (the first field of the index) works
- OK, but that's all I've managed. Until I get this right, I'm doing all my
- data searches with LOCATE and they are slow.
-
- 2) If I create several indexes, how do I keep them all current? Are they
- all automatically updated if they are opened with SELECTs? Or do I have to
- REINDEX after a change is made in the database with one index and then a
- search is required on a different index?
-
- 3) Can you recommend an after-market book that details data search methods?
-
- 4) Is there a reasonable way to perform math functions on 4-digit time
- data? The data is derived by the TIME() function but is stored
- in a character field as 99:99 (hour:minute) character data. What I want to
- do is subtract two fields stored this way in each record and obtain the
- average time between each of these fields. Obviously, 15:01-14.58 should
- equal something other than 00:43. Is there a convert-text-to-time (CTOT?)
- function?
-