Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Columns in a ComboBox
Message
 
To
18/07/2002 16:33:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00680207
Message ID:
00680216
Views:
19
Not really but you can do something like this...

LOCAL lnI

CREATE CURSOR myCursor (cId C(5), cCode C(10), cName C(15))
INSERT INTO myCursor VALUES ("Id","Code","Name")
INSERT INTO myCursor VALUES ("2","001","Jayesh Patel")
INSERT INTO myCursor VALUES ("3","001","John Smith")
INSERT INTO myCursor VALUES ("4","001","Jenny Brown")
INSERT INTO myCursor VALUES ("5","001","Yair Alan Griver")

DEFINE POPUP MyPopup MARGIN RELATIVE COLOR SCHEME 4
GO TOP
lnI = 1
SCAN
lcBar = "DEFINE BAR " + STR(lnI) + " OF myPopup PROMPT '" + PADR(cId,5) + "|" + PADR(cCode,10) + "|" + PADR(cName,15) + "'"
IF lnI = 1
lcBar = lcBar + "COLOR RGB(192,192,192)"
ENDIF
&lcBar
lnI = lnI + 1
ENDSCAN
Thisform.combo1.RowSourceType = 9
Thisform.combo1.RowSource = "MyPopUp"


>I have a combobox with 3 columns in the drop-down. Is there anyway to add headings to the 3 columns?
>
>TIA
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform