On Mon, 26 Jul 2004 09:03:38 -0400, you wrote: >I want a merge sort for data in BASIC, not lists. > >For example ("]" is an @VM) > >REC<1> = A]B]C]D]15 >REC<2> = A]B]C]D]25 >REC<3> = A]B]C]D]100 >REC<4> = A]B]C]D]11 > >I want to sort by multi-value #5 .. The sorting isn't the issue .. It's when >DCOUNT(REC,@AM) gets large that the whole process gets extremely slow .. I >can't do something like MATPARSE, because I can't predict *HOW* big REC will >get .. > >Anyway, I have a sneaking suspicion that it's already been done before, so >I'm trying to avoid re-inventing the wheel .. <snip>
One option is a temporary work file. If you go that route, make the file static, rather than dynamic and size it appropriately. Write the records, select the file by the key, read each record and delete it as you go along. Or select it, save list, get list, process list, get list, delete file (using list). And if you're sharing the application among users, use the @userno as the leading part of the key. Even if you're not sharing the app, use the @userno, so that when you do share the work file later on you don't have to recode the app... -- Allen Egerton [EMAIL PROTECTED] ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/