AutoOpenTables

DropDown

This event fires when the list portion of a combo box drops open.

Usage

PROCEDURE cboCombo.DropDown [ LPARAMETERS nControlIndex ]
As with many other events, the nControlIndex parameter is relevant only when the combo is one of a group of controls contained in an array. In that case, the parameter is passed to tell you which member of that group triggered the event.

This event fires before the list drops down to give you a last chance to change the contents of the list.

Except in VFP 3. There, the list drops down first, then the event fires. We were very pleased to see this bug among the fixes in VFP 5.


Example

PROCEDURE cboState.DropDown    IF ThisForm.lAllowNoChoice       This.AddItem("None of the above")    ENDIF ENDPROC

See Also

ComboBox, DownClick


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net