Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with ComboBox
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem with ComboBox
Miscellaneous
Thread ID:
00720787
Message ID:
00720787
Views:
40
Hello,

I have a problem seting up a combobox in vfp7:

I have a small application where the user can fill the field of the table mymaintable. When it comes to the client field, he can either select one of the values from myclienttable.name or enter a new one.
The combo is set as 2-Alias (I tried 6-field with the same result) and the rowsource is set as myclienttable.name

When the user add a new record, no problem: He can select within myclienttable.name or add manually a new value. When I save in my main table, I replace mymaintable.client with THISFORM.combobox.text that contains the proper value. So far so good.

The problem is that, when I retrieve the record and I want to display it on screen, nothing appears when I take the good value from mymaintable.client and copy it in THISFORM.combobox.value. Unfortunately, I cannot copy it in THISFORM.Combobox.text since it is a readonly property.

Any suggestion. I need to install this tomorrow morning :-(

Many thanks
Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform