>I am using a listbox to display records that a user can double click on to goto a main form with that records information showing. I am also attempting to use listitemid to highlight the current record the user is on, based on what is showing on the main form. When the form (with the listbox) activates i select into a cursor all of the records that pertain to what the user wants to 'select' from. The problem occurs when trying to highlight with the listitemid. On one particular record, the users get a page fault error and foxpro shuts down. When highlighting other records with listitemid, the problem does not occur. Also, they tried deleting that record and the problem, then shifted to another record.
>
>Thanks for any help,
>Jeff Cooper
IF you are using VFP 3, the problem may be the number of items in the listbox. I had a number of problems with large number of elements when trying to populate a list from a cursor or view. It behaves a little better when populated from an array but the only solution I found was to set the RowSource to None and use the AddItem and AddListItem methods to populate the list.