Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox question
Message
De
11/12/2008 23:28:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01366823
Message ID:
01366829
Vues:
11
>If RowSourceType is 1 then your combo is not set up correctly. As far as I recall 6 is the type for fields and 1 is for alias.

The CboGateType control below (with RowSourceType = 1) works fine. Of course it only has one character in each value.

Taking out the InputMask property didn't help.

Peter
RowSourceType Property
nValue  Description  
0  None. (Default) 
1  Value. 
2  Table alias. 
3  SQL statement. 
4  Query (.qpr) file. 
5  Array. 
6  Fields. 
7  Files.
8  Field structure of a table. 
9  Pop-up. Included for backward compatibility. 
10 Collection object.

define class CboGateType as CboList
    name                = "CboGateType"
    ColumnCount         = 2
    columnwidths        = "20,120"          
    DisplayCount        = 5
    inputmask           = "X"
    rowsource           = "C,contractor,E,employee,F,facility,R,reservation,W,whole lot"
    value               = "F"
    width               = 1 CBO_12
    statusbartext = "Enter: C-contractor, E-employee, F-facility (day), R-reservation (overnight), W-whole lot"
    tooltiptext   = "Gate type: C, E, F, R, W"
enddefine    && CboGateType  *************************************************
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform