Francisco,
I was able to reproduce the "record is out of range" error. Here's a fix for you...in CDynamicViewCursor.Requery(), change the last lines of the Requery method:
From...
lnRecord = RECNO()
LOCATE RECORD(1)
This.lNoRecords = !FOUND()
IF !This.lNoRecords
GOTO lnRecord
ENDIF
RETURN lnRetVal
To...
LOCAL llEOF
IF EOF()
llEOF = .T.
ELSE
lnRecord = RECNO()
ENDIF
LOCATE RECORD(1)
This.lNoRecords = !FOUND()
IF !This.lNoRecords
IF llEOF
GO BOTTOM
ELSE
GOTO lnRecord
ENDIF
ENDIF
RETURN lnRetVal
Let me know how this works for you!
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com