Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!prism!jgb From: jgb@prism.gatech.EDU (James G. Baker) Newsgroups: comp.databases Subject: Re: So does Clipper do it ? Message-ID: <29638@hydra.gatech.EDU> Date: 22 May 91 18:42:02 GMT References: <77135@eerie.acsu.Buffalo.EDU> <24910@well.sf.ca.us> Organization: Georgia Institute of Technology Lines: 24 In article <24910@well.sf.ca.us> kms@well.sf.ca.us (Kelly Stanonik) writes: >Well, first of all, what version of Clipper are you trying to use? Second >of all you can index on a function to display the update bar. I personally >shy away from this approach since it places garbage in your index key, but >it will work. Very true. BUT, you can use low-level file calls to change to index expression in the .NTX file. fopen, fread, fwrite. I have an index routine that does an INDEX ON expression+stat_bar() TO index_file and then calls a function to clean up the index_file. (Places a null right after it finds "expression". Might seem a bit dangerous, but it works. Of course your stat_bar() needs to handle what ever type expression is and return 0 or "" appropriately after to displays the status bar. I've got code, if anyone is interested. Hmmm... the xbase news seems to be growing... maybe it is time for a comp.databases.xbase or comp.databases.sources. -J Baker -- BAKER,JAMES G - Undergraduate Lab Instructor, School of Electrical Engineering ____ _ _ Georgia Institute of Technology, Atlanta Georgia, 30332 | | _ |_) uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!jgb (_|. |_). |_). Internet: jgb@prism.gatech.edu, jgb@ee, jgb@eecom, jgb@cc