G
glbdev
Hi.
I am trying to loop thru a listbox and retreive the value for all
selected items.
Example of listbox items:
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
<option value="4">Item 4</option>
<option value="5">Item 5</option>
Here is an example of the code used to parse the listbox:
If Me.lstSelectedIssues.Items.Count = 0 Then Return String.Empty
For x = (Me.lstSelectedIssues.Items.Count - 1) To 0 Step -1
sBuffer += Me.lstSelectedIssues.Items(x).Value + ","
Next
I keep getting the TEXT ('Item1") instead of the NUMERIC (1) values
from these items.
What am I doing wrong?
Thanks,
Steve
I am trying to loop thru a listbox and retreive the value for all
selected items.
Example of listbox items:
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
<option value="4">Item 4</option>
<option value="5">Item 5</option>
Here is an example of the code used to parse the listbox:
If Me.lstSelectedIssues.Items.Count = 0 Then Return String.Empty
For x = (Me.lstSelectedIssues.Items.Count - 1) To 0 Step -1
sBuffer += Me.lstSelectedIssues.Items(x).Value + ","
Next
I keep getting the TEXT ('Item1") instead of the NUMERIC (1) values
from these items.
What am I doing wrong?
Thanks,
Steve