|
-
Nov 8th, 2000, 05:25 PM
#1
Thread Starter
PowerPoster
Is this possible? My boss does it in Delphi. Can i display two fields into a list box? One of the fields will be the one saved into the database, the other just for means of lookup capability.. For example
Field 1 Field 2
010 Plant Name
Fields 2 is only there to give a name to "010"
thanks
-
Nov 8th, 2000, 05:34 PM
#2
Frenzied Member
I think you can enter columns to listboxes, anyway, use the ListView instead, it has a lot of advantages compared to the listbox, including the look.
To add a ListView Press CTRL + T and select Microsoft Windows Common Controls and the icon of the ListView must now appear in your toolbox.
Reply if you need help
[Edited by Jop on 11-08-2000 at 05:36 PM]
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 8th, 2000, 06:01 PM
#3
Thread Starter
PowerPoster
thanks jop
looks pretty cool, although, how do you add items to the list?? I see there isn't a datasource property or add item? What am i overlooking?
-
Nov 8th, 2000, 06:10 PM
#4
Frenzied Member
Oh sh*t, Databases.
I'm pretty sure it's possible, but I've no idea, I never worked with databases (and never needed to), so I'm afraid I can't help you on this one... sorry...
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 8th, 2000, 06:14 PM
#5
Hyperactive Member
for n = 0 to rs.recordcount - 1
mylistbox.additem rs.field1, n
rs.movenext
next
-
Nov 8th, 2000, 06:18 PM
#6
Thread Starter
PowerPoster
..
Bark, does that work for the listview also, or just simple list boxes?
-
Nov 8th, 2000, 06:29 PM
#7
Hyperactive Member
Here's some better help. Sorry for the confusion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|