Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox Bombs Program
Message
De
20/05/1998 14:52:59
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, États-Unis
 
 
À
01/05/1998 15:33:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00096386
Message ID:
00100633
Vues:
29
>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
Fil
Voir

Click here to load this message in the networking platform