Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does combobox.controlsource update?
Message
De
02/06/2003 17:36:36
 
 
À
02/06/2003 10:47:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00794803
Message ID:
00795431
Vues:
17
>>>>I have a combobox bound to a buffered local view. The combobox.click calls a form method to update a business object and some fields from the same view as the combobox's view. In the business object is a call to the same field that the combobox is bound to.
>>>>
>>>>The combobox doesn't appear to be updating it's controlsource at all. DEBUGOUT statements in the click() before and after DODEFAULT() and the call to my procedure all show the same OLD value in the combobox.value and view.field.
>>>>
>>>>Can someone help me get this thing updating properly?
>>>>
>>>>Chris.
>>>
>>>Chris,
>>>Couldn't understand well.
>>>this.Value = this.Value
>>>might help.
>>
>>I need code outside the combo to see the new value in the controlsource. Which David says doesn't update until the Valid.
>
>If you're outside of combo valid already fired, no ?
>Have you tried :
>
>with .Combo
> .Value = .Value
>endwith
Cetin

I was still in the combo.click, calling a bizobj function that relied on the combobox.controlsource having the new value. Since valid() hadn't fired, it still had the old value. It's now working as I want it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform