In a message dated 10/19/2010 10:41:38 AM Pacific Daylight Time, [email protected] writes:
> UV here > > I open a file, then use SELECT filevarible then proceed to do a > LOOP/READNEXT/REPEAT to > scan through the file. > > OPEN "","SOMEFILE" TO F.TEST ELSE STOP > SELECT F.TEST > LOOP > READNEXT ID ELSE EXIT > REPEAT > > Is there any way to know how many records WILL BE processed in that loop > before scanning? > > @selected doesn't work, it only returns the number of items in the last > group that was read > > I tried using SELECT filevariable TO list.variable .... but you can't do > a DCOUNT on that variable > you can only READNEXT FROM list.variable > > Aside from EXECUTE "SELECT filename" RTNLIST in place of the SELECT > filevariable so that > @selected would return with the actual number selected (which does do what > I want) > > Any other methods? > > > George Gallen > Senior Programmer/Analyst > Accounting/Data Division, EDI Administrator > [email protected] > ph:856.848.9005 Ext 220 > The Wyanoke Group > http://www.wyanokegroup.com > > George I think, if I'm psychic you want to know this, because you want to know "How Much Longer Will This Process Take?" There *is* a way to do that, even with a simple BASIC select, but it's not quite the way you're trying to do it. My solution doesn't involve the need to execute a select. It relies on knowledge about the group structure. _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
