Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form OK in development, 'Record is out of range' at run
Message
From
13/05/1998 23:44:44
 
 
To
13/05/1998 22:01:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00098221
Message ID:
00099300
Views:
37
>>>>This form works ok in development, at runtime it displays 'record is out of range' error. The error generates after clicking a command button. The fun part is that it says 'In .CMDRUN.CLICK at line 0'. The form does not have any tables loaded.
>>>>
>>>>TIA
>>>
>>>Most case is the record pointer has jumped to EOF but you still need to show record content. This will cause problem especially at GRID. For other controls, such as textbox, it will be disabled.
>>>
>>>In my case, similiar when I put a command button which allow Undo Add New
>>> record! That is, Tablerevert() on Grid adding new Orderline.
>>>
>>>Quite problem even using refresh, the grid still show No record(s).
>>>THis happen especially at last record and add new then Undo!
>>>Finally, I make some tricky refresh and locate record and fix it.
>>>But I don't think it is a good practice. >~<"
>>
>>Last sentence on my post reads "The form does not have any tables loaded".
>>
>>Thanks for the reply.
>>
>>P.S. Justok, I particularly try my hardest to stay away from the grid control. It's just a pain in the retaguard.
>
>

>Sorry, ummm Let me guess! Do you have any coding like:
>Clear ALL the table will be closed even you have add a DE!
>2nd, try to figure out the current working area by lSelect= select()
>trace out it.

Look, I thank you very much for trying to help, but you should pay more attention to the post before jumping into guessing. You can map this thread and see the code that was in the command button. Again, I DON'T HAVE ANY TABLES loaded in this form, so no table handling code is needed.

Thanks again.
Previous
Reply
Map
View

Click here to load this message in the networking platform