Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to set default value for combobox?
Message
From
11/10/2000 16:48:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427909
Message ID:
00428111
Views:
25
>Hi Trey,
>
>Are you sure, there is no other solution, rather than use select with union (I thought the same, BTW)? The reason, I'm asking, is there are lots of comboboxes, which are used in our application. Does it mean, that we should re-define RowSource for all of them?
>
>I was thinking about something like this in combobox.RightClick() method for our combobox class:
>
> this.displayvalue=''
> this.value='' && Basically these comboboxes have character value
>
>
>Not sure, it it would work.

This is FoxPro - there's almost always another solution <g>

If you like this approach, I wouldn't put it in the RightClick(), but rather trap a Delete or Backspace in the KeyPress of the combobox.
That's more intuitive, and behaves like a textbox would if you selected all and hit Delete or Backspace.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform