Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving listbox items back to table
Message
De
01/04/1998 11:32:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/04/1998 11:27:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00088653
Message ID:
00088711
Vues:
34
Snip...
>Your original lstSource.dblclick was like this :
>
>THIS.Parent.lstSelected.AddItem(THIS.List(THIS.ListIndex))
>This.RemoveItem(THIS.ListIndex)
>THIS.Parent.Refresh
>
>Would be replaced with :
>
>with this.parent.lselected
>  .addlistitem(THIS.List(THIS.ListIndex),THIS.ListIndex,1)
>  .addlistitem(THIS.List(THIS.ListIndex,2),THIS.ListIndex,2)
>endwith
>This.RemoveItem(THIS.ListIndex)
>THIS.Parent.Refresh
>
>For this to work both lists would have two columns (code in second column). If you want to have only "code" in right list then just set boundcolumn in lstSource to code column and use your original syntax.
>Cetin
Ooops. To make sure you have unique ItemIDs instead of "this.listindex" use something like ".listcount+1" :
with this.parent.lselected
  .addlistitem(THIS.List(THIS.ListIndex),.listcount+1,1) 
  .addlistitem(THIS.List(THIS.ListIndex,2),.listcount,2) 
endwith
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
Répondre
Fil
Voir

Click here to load this message in the networking platform