Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement