Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox selection is null
Message
De
28/12/2001 12:53:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/12/2001 12:20:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00598855
Message ID:
00598871
Vues:
13
>Unusual behavior?
>
>Listbox1 in the double click event feeds listbox2 with an add item.
>Which is fine. The listbox1 uses files as its type.
>Occasionally the user errors and selects a [..] file.
>Okie we dont like or want this so we have a double click event in listbox2 that does a removeitem, which works fine.
>
>However when the following occurs:
>Action Listbox1 listbox2
>Click Listbox1 [..] -> [..]
>click Listbox1 filename.txt -> filename.txt
>DBlClick Listbox2 gone [..]
>Click process button
>.displayvalue of listbox2 is null instead fo filename.txt
>
>in essence with a removal of the firstitem in the listbox2
>the filename.txt moves to the top but its values are now null instead of what is the next item in the list.
>
>Any ideas how to get around this?
>we have tried
>.refresh
>.selectedid(1)
>
>Thanks

Tom,
You're using a special case of listbox. Do not removeitem or additem when it's set to files. Provide an external button to select (move) files and check for items selected where listindex GTE 5.
Otherwise you'd also get into trouble wih directories as well.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform