Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GPF error in listbox control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00269833
Message ID:
00270248
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform