|
-
Mar 2nd, 2004, 07:26 AM
#1
Thread Starter
Fanatic Member
additem
cboRequestor.AddItem ("X")
cboRequestor.AddItem ("y")
cboRequestor.AddItem ("z")
i am using the style 'dropdown list' which i intend to use.
however how do i add to the statments above to make z item the first to show instead of x..
and currently the combo is blank when first load ...how do i make the first item of the list to be show straight after the loading of form?
-
Mar 2nd, 2004, 07:28 AM
#2
As long as the item exists, that will work.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 2nd, 2004, 07:30 AM
#3
Goh
cboRequestor.Text = cboRequestor.List(0) will allow you to show which ever item in your list that you want. Where 0 is the list index of the item you want to display.
-
Mar 2nd, 2004, 07:33 AM
#4
Thread Starter
Fanatic Member
so the list(0) is the first item that will be shown from my objRS ?( for my case i mean)
-
Mar 2nd, 2004, 07:34 AM
#5
Goh,
This is correct. If you mean the combo listbox.
-
Mar 2nd, 2004, 07:36 AM
#6
Thread Starter
Fanatic Member
so the only way to test the index number for a particular item is to try out one by one right?
-
Mar 2nd, 2004, 07:40 AM
#7
Originally posted by Goh
so the only way to test the index number for a particular item is to try out one by one right?
Not really, do a search for CB_FINDSTRINGEXACT and you will find an API example that can do it in one call.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 2nd, 2004, 07:43 AM
#8
Thread Starter
Fanatic Member
wat is CB_FINDSTRINGEXACT ???
-
Mar 2nd, 2004, 07:47 AM
#9
Its an API constant used by the SendMessage API. Do a search and you will see.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 2nd, 2004, 08:03 AM
#10
Thread Starter
Fanatic Member
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
|