Thank you Ken, We have modified the subroutine according to your suggestions. It is working as expected.
Thank you again for your help. Regards Kafsat -----Original Message----- From: Ken Wallis [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 November 2004 10:57 AM To: [EMAIL PROTECTED] Subject: RE: [U2] Index problem Kafsat, I believe that if you pass the record data into the subroutine as a parameter using @RECORD instead of re-reading it from the file, then you will have a better chance of getting the behaviour you want: V SUBR("KAFSATS",@ID,@RECORD,OTHERSTUFF) ... SUBROUTINE KAFSATS(RESULT, REC_ID, REC_DATA, OTHERSTUFF) ... RETURN END Cheers, Ken > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of kafsat taiyus > Sent: Thursday, 4 November 2004 11:00 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [U2] Index problem > > > Thank you everybody for all your answers. > > I have used debug and stepped though the subroutine. While > adding a new > record the program is reading the new non existing record > from the same file > and not returning anything for the virtual field. This is > one reason for > not updating the index in the first place. > > I have tried to write same record twice with the same ID > overwriting the > existing record. In this case the subroutine return the > correct value but > the index still does not get updated. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ This email and any attachments are confidential and intended solely for the use of the person or entity to whom they are addressed. If you are not the intended recipient, please do not disclose, store, copy or take any action in reliance on it or them. If you have received this message in error, please tell us by reply email (or telephone + 61 (0) 3 9274 9100) and delete all copies on your system. Any opinion, advice or information in this email is not necessarily that of the owners or officers of this company. Please advise us immediately if you or your employer do not consent to email for messages of this type. Retail Decisions has taken reasonable precautions to ensure that any attachment to this email has been swept for viruses. However, we cannot accept any liability for any damage sustained as a result of software viruses, and would advise that you carry out your own virus checks before opening any attachment. Please note that communications sent by or to any person through our computer system may be viewed by other Retail Decisions employees or officers strictly in accordance with law. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
