General information
Category:
Coding, syntax & commands
Also, you can't use ItemTips = .T. if the rowsource type is a SQL-Select statement.
>>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 your rowsourcetype for the list is alias, sql statement, field or query and your list contains 253 or more elements then there is a bug that will get you eventually with all versions of VFP5 (wasn't a problem in VFP3) up to and including Service Pack 3. See MS KB Document Q164252 for a brief and not very thorough discussion of this problem (including a suggested workaround). In short, if your listindex mod 256 = 253 (items 253, 509,......) when the list gets the focus your program will be hosed. Workaround is to use a different type of list rowsourcetype or redesign your interface using various other approaches.
>
>Murray
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only