Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comboboxes DisplayValue is UNRELIABLE!
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Comboboxes DisplayValue is UNRELIABLE!
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057266
Message ID:
01057266
Views:
48
Hi everybody,

I posted a thread few weeks (?) ago about DisplayValue problem. We're hitting the same problem again.

Here is the scenario:

We insert a new record into several related tables. We're displaying information about Relation code in the combobox. The record source for the combobox is an array, that doesn't have an empty value.

If we query this.combobox.DisplayValue, it contents a wrong information (the previous record value before we added a record). But if we do it like this:

lcValue = this.combobox.value
now access this.combobox.DisplayValue

the DisplayValue is now set correctly.

We had to use the same trick in a different place, because displayvalue was not set correctly.

Did you ever observe something similar? Why DisplayValue is not reliable?

Using VFP9, no SP.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform