Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBoxes Property
Message
From
06/03/2001 15:29:20
 
 
To
06/03/2001 13:55:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00482259
Message ID:
00482425
Views:
9
>Thanks for the time there Bill:
>
>It is very simple as follows
>RowSourceType = 1 - Value
>RowSource = Contract Carrier,Broker Company,Reship/LTL Carrier,
> Dedicated Cartage,Shuttle,Air & Boat,Intermodal
>
>so the combo has six diferent values, we need the user to type a new one and execute the form.
>Next time we instantiate the form, it does not need to have whatever they typed last.
>I believe is a Style attribute between combo and list box.
>I need the user to type whatever s/he pleases and don't need to add programatically nor to stay for next run.
>
>Will that help?. Thanks for the responses

If I am understanding you correctly, it would seem sufficient to set the combo style to DropDown Combo and grab the data in the DisplayValue property of the combo in an appropriate event, such as when the user clicks an "Ok" button on the form.

If the user selected an existing option in the combo, the combo's Value property and DisplayValue property will contain the same data. if the user typed something new into the combo's textbox, combo's Value property and DisplayValue property will contain different data. You can test for this and take whatever action is appropriate. If there is new data typed into the combo textbox, grab this data from the combo's DisplayValue property and use it as needed.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform