Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comboboxes DisplayValue is UNRELIABLE!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01057266
Message ID:
01057278
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform