Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GPF error in listbox control
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00269833
Message ID:
00270248
Views:
22
>I am using a piece of shareware that I found in the Files Section, file #9468 entitled, "bbListView - an enhanced listbox control."
>
>It causes the following error at run-time:
>VFP6 caused a general protection fault in module KRNL386.EXE at 0001:00004a3f.
>
>The line of code that causes the error is in the listbox event called OnItemDoubleClick as follows:
>cMyValue = ALLT(THIS.ListItem(nrowindex,1))
>
>Here I am getting a value from column 1, row whatever from the enhanced listbox.
>
>Any idea what to do to get around the problem? The error seems pretty solid. It seems to happen every time I choose an item in the listbox.
>
>Thanks for your help.

Dear Steve,

the solution is very easy. ListItem methods gives you an object!!!
You probably want to use the text property of it, so use the following, and the GPF will disappear:

cMyValue = ALLT(THIS.ListItem(nrowindex,1).text)

(See ListItem keyword in the help file for more detail and other properties of ListItem object)


bb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform