From: Michael <[EMAIL PROTECTED]>

hi All,
I seem to be getting the weirdest error.

If I add rows to a list box like this:

for x = 0 to Count // Count derived from Countfields
listbox1.addRow pList // where pList is a string property of a window
next

It populates the lisbox from row 1


If I do this:


for x = 0 to 5
listbox1.addRow "hello"
next


It populates listbox from row 0

Anyone else noticed this?

thanks

This line is the smoking gun, I suspect:

   for x = 0 to Count // Count derived from Countfields

If you're using CountFields with NthField, then you should be aware that NthField is only valid for 1 through CountFields. I suspect you're asking for the 0-th field and getting back an empty string, which is going into row 0.

Paul Rodman
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to