Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox again
Message
From
07/11/2005 10:39:16
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064970
Message ID:
01065984
Views:
20
>>That's vfp. The input's (textbox, combo, checkbox, ...) controlsource is only updated after the object loses the focus. (Hence Setfocus() to be sure)
>>You could also check whether the ActiveControl's value is different from the ActiveControl's ControlSource. If yes, reset the focus to force update
>>
>>Bear in mind that since SetFocus() does a lostfocus, the SetFocus() triggers the ControlSource's field validation. Hence the form must trap the error, if any
>>
>>You could also replace field with m.lcNewStatusCode in ControlSource's alias and thisform.cntMainInfo.cboStatusCodes.Refresh(). But I prefer the SetFocus()
>>
>>>Now we need to work out the similar problem in another form. I'll give you a thread reference in a minute, right now I have a meeting.
>>lol
>
>Ok, I'm back <g> By checking combo's interactivechange method I've realized, that we forgot to update status date field. So, if I just add txtStatusDate.value = date() after combo's displayvalue, would it be enough? That's I'm going to test in a minute.
>
>Here is the other thread, BTW Bug in combobox? Thread #1065415 Message #1065415


Is the other thread not pointing to this one ?
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform