Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Class won't allow typing...
Message
From
01/09/2000 14:31:18
 
 
To
01/09/2000 04:22:36
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00411624
Message ID:
00411913
Views:
17
Hi Tim.

>> This is a drop down combo and I can type but as soon
as I resize the grid that contains it or when the valid event
fires....The values are gone.

I can only select items from the list and then it works. <<

Are you saying that the combo goes blank when you type in a value that is not in its RowSource? This is exactly what I would expect to happen. You must take action in the combo's Valid to add the item if it is not yet in the Combo's RowSource. Code something like this:
WITH This
  IF .ListIndex = 0 AND NOT EMPTY( .DisplayValue )
    *** Update the cobo's RowSource here
    .Requery()
  ENDIF
ENDWITH
If what you want is a combo that you can bind to values that are not in its RowSource, check out "1001 Things You Wanted To Know About Visual FoxPro" (Akins, Kramek & Schummer May, 2000) at www.Hentzenwerke.com. There is a combo class that does this in Chapter 5.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform