Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box - preventing truncated field values
Message
De
06/01/2006 03:38:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01083909
Message ID:
01083935
Vues:
12
>(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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform