Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Bombs Program
Message
From
21/05/1998 11:49:48
 
 
To
20/05/1998 14:52:59
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096386
Message ID:
00100852
Views:
33
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
Map
View

Click here to load this message in the networking platform