Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank Entry in ComboBox?
Message
From
15/06/2001 11:30:31
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00519351
Message ID:
00519992
Views:
19
>Renoir,
>
>Here's code I use in the KeyPress method of the combo:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF THIS.STYLE = 2 AND nKeyCode = KEY_DELETE
>  THIS.LISTINDEX = 0
>  THIS.INTERACTIVECHANGE()
>ENDIF
>
>
>KEY_DELETE = 7
>
>This allows the delete key to be used to "reset" the combo.
>
>>The application I'm working on uses the logic of having the first entry (default) in the RowSource as a space so that the user can select this if they choose an incorrect entry. For example, if the user inadvertently picked an option, without the blank available they would only be able to choose another option. This doesn't seem like a good interface to me. Is there a way for the user to easily revert the CombeBos to an empty value without having the blank in the list? Thanks!
>>
>>Regards, Renoir
Brien -
i was going to offer, that in the right click event, i set
the control's VALUE property to 0 or '' , but i like your
method better.  more intuitive.
patrick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform