Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sync Listbox with a grid (Listindex, recno())
Message
 
 
To
23/06/2000 11:53:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00383655
Message ID:
00384170
Views:
22
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform