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/

Reply via email to