-
Hey guys.
Sb must have had this problem before.
I have a filter thru comma sep. values that adds items to the listbox only if they meet certain criteria
To make certain that it was not an error in the filter, I used a label whose captions shows the number of results found (intNumRecords). Problem is only one line is showing in the list box.
Here is my code (roughly):
For intNum = 0 to intNumRecords 'the # of records found
List1.AddItem strLine(intNum),intNum
Next intNum
Looks simple enough but when I run it, only the first one shows (Record #0). Why doesn't this work?
Any ideas?
-
Don't know but I'll ask some basic questions that you've asked yourself anyway.
Does the Array strLine() contain values?
Is intNumRecords > 1?
Is it looping as expected?
Have you tried it without the Index explicitly, I never use it?
Try
Code:
from intNum = lbound(strLine) to ubound(strLine) -1
List1.AddItem strLine(intNum)
next intNum
-
<?>
code would help..all you have there is a loop
Too many where what how's to guess at.