Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox again
Message
From
07/11/2005 09:18:04
 
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:
01065955
Views:
20
>>N,
>>
>>Try to take the focus off the combo after the assignment (or simply reset focus() after the assignment)
>>
>>
>>>
>>>*** Update status code
>>>
>>>            thisform.cntMainInfo.cboStatusCodes.displayvalue = m.lcNewStatusCode
>>
>>             =thisform.cntMainInfo.cboStatusCodes.SetFocus()
>>
>>>            thisform.lStatusCodeChanged = .T.
>>> 			thisform.oBizObj.lCascadeMessages = .F.
>>>
>>>            if m.llRetVal and thisform.oBizObj.save() = FILE_OK
>
>Did you mean to try to put focus on the combobox after the assignment? Because the focus is on the button at that time.

Yes

I think that the value is only written to the disk buffer after the focus on the combo is lost. SetFocus = leave focus and set focus

Try and see ;-)
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform