Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display combo with no selection
Message
From
28/06/2005 09:45:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026750
Message ID:
01027009
Views:
13
>>Ooops. This is not a reproducing code for me. I don't want to create all those tables/fields.
>>However a quick try:
>> thisform.combo1.controlsource = ''
>> thisform.combo1.ListIndex = 0
>>
>>Cetin
>
>Cetin,
>
>You don't have to use the same tables. Create a simple table with two fields: cUserID and cEmpName. Put some data and put 4 records with empty cUserID, but not empty cEmpName.
>
>Anyway, let me try your idea first.
>
>Setting controlsource to nothing seems to fix the problem. Is where a way to reset combo to blank value once something was selected? (If there are not empty cEmpName in the list)? Ctrl+0 doesn't do it.
>
>Thanks again.

Both Ctrl+0 and ListIndex=0 works for me to reset (maybe you tried Ctrl+letterO, Ctrl+Zero should it be).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform