Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent input in ComboBox control ?
Message
De
25/09/2013 08:53:20
 
 
À
24/09/2013 21:18:29
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01583994
Message ID:
01584086
Vues:
64
J'aime (1)
>Hi,
>
>the combBox is Read only,
>Enabled = .t.
>Style is 2- Drop down List
>BoundTo = .T.
>RowSourceType = 3
>
>The code as follow
>
>
>thisform.cboInvNo.ControlSource = "invoice.invno"
>thisform.cboInvNo.RowSource = "select invoice.invno from invoice into cursor cboInvNo"
>thisform.cboInvNo.ListIndex = 1
>
>
>Which area wrong ?
>Please advise.
>Thanks.
>Derek

The ReadOnly = .T. is preventing you from clicking it. Set that to .F. and the Style = 2 (Dropdown List) will prevent changing the items in the list.

Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform