This is a new one for me. Maybe someone has stumbled with it before?
In VFP6 SP5 if you have a ComboBox with the following settings :

        .value = ''
        .RowSourceType = 6      && Fields
        .RowSource = 'Modulo.ModuloNombre, ModuloId'
        .BoundColumn = 2        
        .BoundTo = .T.          
        .ColumnCount = 0        
        .ColumnLines = .F.

if the associated cursor has only one record (that is, there is no true
choice) then the InteractiveChange() event is not invoked when the user
selects this record (click on the control and click on the only choice
you have). In this event I have code to update the table which has a
reference to 'Modulo', 'Modulo' is a cursor whose contents change based
on other ComboBox selections by the user.
So the only way the user had to change the underlying table was to click
<Enter> on the ComboBox control.
I solved it by placing a call to This.InteractiveChange() in the
LostFocus() event of my base ComboBox class.

If anyone can think of a better solution I'd be interested in hearing
about it.

Ricardo





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to