Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box - preventing truncated field values
Message
From
06/01/2006 03:38:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01083909
Message ID:
01083935
Views:
11
>(Wish I had a better title)
>
>I have an existing form with a combobox - RowSourceType=1-Value and RowSource=Unknown,Yes,No - it matches a one character field in a table and correctly puts the first character (of the selected RowSource word) into the table.
>
>My customer wants a quick fix to have it display the full word - not just the single character - when updating a record.

Try (All combo items are at their defaults):
* Combo.init (or form.init)
With This
 .AddListItem("Unknown",1,1)
 .AddListItem("U",1,2)
 .AddListItem("Yes",2,1)
 .AddListItem("Y",2,2)
 .AddListItem("No",3,1)
 .AddListItem("N",3,2)
 .BoundColumn=2
 .ControlSource = "myAlias.myField"
 .Style = 2
Endwith
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
Next
Reply
Map
View

Click here to load this message in the networking platform