Excellent solution, Mark - thank you.

I've never used BSCAN before, but this solves my problem elegantly without
having to create new VOC entries pointing directly at the index files.

Thanks again,
Adrian

-----Original Message-----
From: Janke, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, 10 June 2004 23:09
To: '[EMAIL PROTECTED]'
Subject: RE: [U2] [UV] SELECTINDEX inside a user conversion subroutine
is corrupting the record count


Perhaps you could modify your routine to use BSCAN instead of SELECTINDEX,
something along the lines of:

BSCAN found.key, record.keys FROM operators.file.var,
operator.number.to.find USING 'index.name'  BY 'A' THEN
   IF STATUS() = 1 THEN  ;* Desired operator number actually found
      FORMLIST record.keys TO 8
   ELSE
     * Operator number not found.
   END
ELSE
   * Operator number not found
END

If you don't really need to put the record.keys into a SELECT list, then you
could just do a LOOP REMOVE to get each key from the record.keys variable.

Hopefully this would avoid the problem you're running into.

Mark

-


Disclaimer.  This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is clearly
indicated. You should scan this e-mail and any attachments for viruses. This
company accepts no liability for any direct or indirect damage or loss
resulting from the use of any attachments to this e-mail.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to