Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to set default value for combobox?
Message
De
11/10/2000 16:48:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00427909
Message ID:
00428111
Vues:
24
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform