On Nov 16, 2006, at 5:43 AM, Michael wrote:

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?


ListBox1.Addrow "whatever" always appends a new row each time it is called. In other words, if row 0 has been added previously, ListBox1.Addrow "whatever" puts "whatever' in row 1. I know that you know that already, so I'm suggesting that the functionality that you describe is probably the result of a blank row already added into row 0, somehow, perhaps in the Properties Pane, in your first case above. You could check this out by adding the following line prior to each case:

msgbox str(ListBox1.ListCount)



Best,

Jack
_______________________________________________
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