Date: Tue, 18 Apr 1995 14:40:29 +0000 Reply-To: The NOMAD2 Discussion List Sender: The NOMAD2 Discussion List From: Kuen-Yih Chang Subject: recno(): how to find record no.? Hi, Is there anyone ever know a function like recno()? I am looking for a way to find record number efficiently. I have a program for multiple instances update. I try to put some info looks like 'Records: 13/233' at the corner of my update window. (13 is the record number of first record on current update window, 233 is the total record number). For the total record number, I use: LIST COUNT(KEYITEM1) NOPRINT SET &TOTAL_REC OTW &TOTAL_REC = 0; This is not efficient at all but is the only way I know to get the total number of records. I use &CURR_REC to keep current record no. When user make a PageUp or PageDown, I substract or add a screenful number of records to &CURR_REC. But when user make a search (by whatever method, tlocate, rkey, locate, ...) or insert or change key, I lost my track of &CURR_REC........ Any suggestion is welcome. Kuen-Yih Chang -------------------------- SIU - School of Medicine email:kchang@siumed.edu phone:785-8153 back to index