Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No Cursor No Edit combobox
Message
From
20/12/2001 08:54:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/12/2001 08:50:15
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00596715
Message ID:
00596717
Views:
32
>Hi
> In a combobox I do don't want the use able to edit. It is just used to
>select a record. I wish vfp had a drop down listbox. The number of records
>in my program will evenually become quit large an I am not sure a combobox
>can handle a lot of records, 500 to maybe 5000. I don't want the cursor
>blinking in the combobox. I set the readonly property to true and it grays
>out the combobox completly. This is not good. I want the combobox active so
>the user can make a selection only, no edit. Thanks for your help.

John,
Try this :
*Combo.init
with this
  .RowSourceType = 3 && SQL
  .RowSource = 'select ... from .. into cursor crsCombo'
  .Style = 2 && Dropdown list
endwith
This also overcomes the element count limit.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform