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

- Add new record
- Requery Array for combo
- call combobox.Requery()

MartinJ

>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.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform