Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Help
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00145776
Message ID:
00145781
Views:
31
>I have a form with a dropdown combo box that's not working properly. If I select a value from the dropdown list, I get the correct info. for the 2nd field. If I type in a value that is new, the 2nd field takes the info. from the 1st record in the index order. What is wrong?
>
>In the Valid of the combo box I have
> lcName = thisform.cboName.value
> SEEK lcName
> if !found()
> thisform.edtfld2.value = space(5)
> else
> thisform.edtfld2.value = fld2
> endif
>
>Thanks

Jane,

You need to change the code to look at the DisplayValue instead of the Value property. Value will never cotain a value that is NOT in the list, but DisplayValue will contain what the user typed.
Previous
Reply
Map
View

Click here to load this message in the networking platform