>The following code is simple and straighforward, but when I do the replace statement, the last record in cursor is updated instead of the first, and the scan terminates. I've never seen this before. Any clues?
>
>Scan
> lcProject = Alltrim(Project)
> If Seek(lcProject, "bond", "proj")
> liBond = bond.ky
> Replace bondky With liBond In curRedemptions
> Endif
>Endscan
It would happen if you're scanning in curRedemptions and index on bondky is active. You could instead do a single replace w/o scan/endscan:
replace bondky with bond.ky for seek(alltrim(Project),'bond','proj')
Cetin