Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Marcia Akins
  Where is Marcia Akins?
 Akorn
 Ohio - United States
 Marcia Akins
 To: rino tenorio
  Where is rino tenorio?
 pasig
 Philippines
 rino tenorio
 Tags
Subject: RE: Combo box
Thread ID: 190056 Message ID: 190102 # Views: 44 # Ratings: 0
Version: Visual FoxPro 3 Category: Linux and VFP
Date: Tuesday, August 19, 2008 12:58:50 PM         
   


My objective is when I type something in the combobox without pressing the arrow button it will prompt me that my inputs are not in the list???

You need to write some code to check to see if the user typed in something that was not in the combo's internal list and them take specific action to add it - the code depends on the combo's RowSourceType. In version 9, code like this in the combo's Valid() will work for you. It has been so long since I worked with version 3 that I do not remember how you may need to modify this:

IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
  *** User type in a new value
  *** Display your messagebxo and if the user answers yes,
  *** add the DisplayValue to the underlying RecordSource
  *** and afterward:
  This.Requery()
ENDIF 



Regards,
Marcia G. Akins
Tightline Computers, Inc.




COMPLETE THREAD
Combo box Posted by rino tenorio @ 8/19/2008 7:11:35 AM
RE: Combo box Posted by Stefan Wuebbe @ 8/19/2008 7:26:39 AM
RE: Combo box Posted by rino tenorio @ 8/19/2008 7:37:26 AM
RE: Combo box Posted by Marcia Akins @ 8/19/2008 12:58:50 PM
RE: Combo box Posted by rino tenorio @ 8/20/2008 7:09:38 AM
RE: Combo box Posted by Marcia Akins @ 8/20/2008 12:42:45 PM
RE: Combo box Posted by rino tenorio @ 8/26/2008 6:40:56 AM