Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Language Translator
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00523310
Message ID:
00526071
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform