Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box just won't keep hand entered text
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00987581
Message ID:
00990013
Views:
37
in the Valid I keyed

this.value = this.DisplayValue
this.requery()


Try this instead:

Change the RowSourceType of the ComboBox to 0-None and populate it like this in its Init():
WITH This
  .AddItem( [Apples] )
  .AddItem( [Oranges] )
  .AddItem( [Pears] )
ENDWITH
And use this code in its Valid():
WITH This
  IF NOT EMPTY( .DisplayValue ) AND .ListIndex = 0
    .AddItem( .DisplayValue )
    .Requery()
  ENDIF
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform