Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sync Listbox with a grid (Listindex, recno())
Message
 
À
23/06/2000 11:53:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00383655
Message ID:
00384170
Vues:
30
>Hallo Jess,
>exactly this is what I mean
>regards

You can make the customer.name as the controlsource of your listbox but make sure that the rowsource of it should also be equivalent to the customer.name.

To explain it further:

listbox.rowsourcetype = 6 && fields
listbox.boundcolumn = 1
listbox.rowsource = "customer.name"
listbox.controlsource = "customer.name" && optional bec. you can directly assign value to it i.e. listbox.value = customer.name

Or make use of the customer.code

listbox.rowsourcetype = 6 && fields
listbox.boundcolumn = 2
listbox.rowsource = "customer.name, code"
listbox.controlsource = "customer.code" && optional bec. you can directly assign value to it i.e. listbox.value = customer.code

Somewhere in your code, simply put: Thisform.Listbox.Refresh()

Listindex is not a good approach to achieve this.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform