Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank Entry in ComboBox?
Message
 
To
14/06/2001 10:36:56
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00519351
Message ID:
00519796
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
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 R. Givens

Brampwood Systems
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform