Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Data
Message
 
To
21/07/1999 14:14:32
Jill Desplinter
Claims Administrative Services
Tyler, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00243838
Message ID:
00244539
Views:
15
Try setting the RowSource and RowSourceType as follows:

*-- Set rowsource to nothing.
This.RowSource = ""
*-- Set rowsourcetype to 0(none)
This.RowSourceType = 0
*-- Drop-down list
This.Style = 2
*-- Add your items.
This.AddItem("Full Duty, Full Pay")
This.AddItem("Half Pay")
*-- Makes combo display first option.
This.ListIndex = 1

Make sure that the field length of the ControlSource is long enough for your longest item in the combobox.

-Mike

>I tried you suggestion but it only took the data in the first AddItem. It gave to options to pick from but the second one was blank. Have I done something wrong or is there one more thing I need to do for it to work?
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform