Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clistobjedit - Add record, add 2nd record, cancel...kaboom!
Message
From
17/05/2004 18:37:22
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Clistobjedit - Add record, add 2nd record, cancel...kaboom!
Miscellaneous
Thread ID:
00904742
Message ID:
00904742
Views:
51
Greetings!

I have multiple clistobjedit objects on a form. On any of them if I click the Add button and add a record to the grid (which, of course, calls the edit program and saves it, etc.), it works fine. If I click the Add button again and then click the Cancel button on the edit form, I get this error:

Error #: 5
Message: Record is out of range.
Line: 80
Code: GOTO This.Parent.cListObj1.grdList.nRecNo IN (lcAlias)

Method: Click
Object: cashsaleform.clistobjedit2.cmdadd

I've traced this with the debugger and guess what? It doesn't blow up in debug mode! The single record that was added to the business object is in the view and the pointer is positioned to that record already when it gets to the line of code that blows up. I don't know else to check?? All three clistobjedit objects on this form return the same message under the same circumstances.

Any ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform