Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Imran Khan
  Where is Imran Khan?
 Lahore
 Pakistan
 Imran Khan
 To: Carlos Alloatti
  Where is Carlos Alloatti?
 
 Vatican City State (Holy See)
 Carlos Alloatti
 Tags
Subject: RE: Return value from Combobox
Thread ID: 268512 Message ID: 268520 # Views: 31 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, July 12, 2010 11:21:23 PM         
   


> > Hi Experts,
> >
> > I have created Combobox with following:
> >
> > This.AddListItem("Pakistan",1,1)
> > This.AddListItem("USA",2,1)
> > This.AddListItem("UK",3,1)
> >
> > My combobox syle set 0-Dropdown Combobox.
> >
> > When I type different value like "Srilanka" in combbox other than above liste, combobox return 0 value.
> >
> > How can I get value "Srilanak" other than list when type.
> >
> > Regards
> > Imran
>
> DisplayValue Property
>
> "When a combo box or list box has only one column, the DisplayValue property and Value property of the control usually have the same setting if both contain character strings. An exception exists when both properties contain character strings, and a value is typed in the combo box, but the value does not exist in the list. In this case, the value is an empty string (""), and DisplayValue will be the value that is typed in."
>
> ---
> Carlos Alloatti

Thanks

ENTIRE THREAD

Return value from Combobox Posted by Imran Khan @ 7/12/2010 9:57:09 PM
RE: Return value from Combobox Posted by Yuri Rubinov @ 7/12/2010 10:13:01 PM
RE: Return value from Combobox Posted by Carlos Alloatti @ 7/12/2010 10:26:25 PM
RE: Return value from Combobox Posted by Imran Khan @ 7/12/2010 11:21:23 PM