faqts : Computers : Programming

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

how can we get the values of drop down list when it is a while loop

Mar 4th, 2005 03:16
TeraZen, Naresh Kumar,


It depends of the language you're using! ;-)
In Visual Basic, on a simple form with a ListBox named "List1", you
could use this code in a button Click() event;
'=== Begin code ===
Dim i As Integer
i = 0
'Index of the listbox is 0...([items count] - 1)
While (i < List1.ListCount)
   MsgBox List1.List(i)
   i = i + 1
Wend
'=== End code ===
But listboxes have "items" or "list" properties in every language...
just check in the doc ;-)