Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling items in list box
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00159415
Message ID:
00159426
Vues:
20
I started making an array for it, but when I added the property to the form, I realized I don't know how to tell VFP that it's supposed to be an array. How do I do that?

Thanks,

-Michelle

>Michelle,
>
>If the item list is that small I'd use an array property to hold the items. YOu can change them at will and lst.Requery(). Although disabled items in a listbox are somewhat problematic because they can be selected via the keyboard. But you can code around this.
>
>I prefer to not have unselectable things show up in a selection list.
>
>>I have a list box with a small amount of items in it. (Usually < 5). If one of the items is already in use, I want to disable it. I vaguely remember seeing once that you can put a \ in front of the item to disable it, but how do you put it there? I don't know how to edit an item on the list.
>>
>>I suppose I could make the cursor it's based on writable and change it there and requery the listbox, but it seems like it should be simpler than that.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform