Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox making me listen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00303114
Message ID:
00303128
Vues:
32
Steve,

What kind of code are you using to add items? Setting ListIndex does not control where an item would be added. Setting ListIndex to a value is a way of programatically selecting the current choice in the lst.

FWIW - if you click the Computer icon you can put your signature there and it'll automatically be added to your replies without you having to put it in each message.

>I have a listbox problem. It should be a peesacake, but I am getting tired of it. I add list items to a listbox interactively by pressing a command button called Add to Listbox.
>
>As I press Add to add listbox items, the list in the listbox shows 1, then 1, 1, 2, then 1, 1, 2, 1, 2, 3. If I choose any of the 1s in the listbox it takes me to the correct record. Same when I choose 2 or 3 in the listbox.
>
>I thought I could do ListIndex = 1 and reset the listbox to the top.
>I also tried clearing the listbox first. When I did ListIndex = 1 it did take me to the top of the listox, but I still have all of those repeats in the listbox. What am I doing wrong? I checked several books, but don't see the problem.
>
>Please and thank you.
>
>Steve Kramer
>Kramer & Kramer Design
>"VFP doesn't like me tonight!"
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform