Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo disables when controlSource is set
Message
 
À
26/09/2005 20:49:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01053276
Message ID:
01053348
Vues:
15
Is it possible that the table apInvItems has no records?

>Greetings community
>I have a combo box that disables as soon as the control source is set. PONum is defined as character 6. No problems if I comment out the controlSource line of code. I have also attempted to run without the .boundTo and .boundColumn with the same result. setting enabled = .T. as I do in the code before and after does no good. The data is numeric, but the field defn is character.
>Clueless in Bath. Thanks in advance
>Vince
>
>SELECT p.poNum, p.vendCode;
>       FROM poMast as p;
>       WHERE p.vendCode = vendMast.code;
>       ORDER BY p.poNum;
>       INTO CURSOR tmpCurPOs
>...
>thisform.clsdatadesc.cboponum.Enabled = .T.
>
> WITH thisform.clsdatadesc.cboPoNum
>     .controlSource = "apInvItems.poNum"
>     .RowSourceType = 2  && alias
>     .rowsource = "tmpCurPOs.poNum, vendCode"
>     *.rowsource = "poMast.poNum, vendCode"
>     .columncount = 2
>     .columnWidths = "50,50"
>     .boundcolumn = 1  && listValue
>     .boundTo = .T.
>     .requery
>     .enabled = .T.
>ENDWITH
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform