Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo disables when controlSource is set
Message
From
26/09/2005 20:49:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combo disables when controlSource is set
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01053276
Message ID:
01053276
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform