>This works but when I click on the list, all the pictures change to the default picture. As long as I don't click on the list, each item can have a different picture.
>
>What am I doing wrong?
>Mylistbox.Rowsource = "mycursor.field"
>Mylistbox.Rowsourcetype = 2
>IF condition
>THISFORM.Mylistbox.Picture[n] ='IMAGES\image1.BMP'
>ELSE
>THISFORM.Mylistbox.Picture[n] ='IMAGES\image2.BMP'
>ENDIF
>
Nothing is wrong with your code, as Marcia already said that this is standard behavior for VFP. This is true but only if you use this against table/cursor.
The workaround for this is to use array. Add property to your form say "MyArray[1,0]" then populate the table into thisform.myarray
Mylistbox.Rowsource = "thisform.myarray"
Mylistbox.Rowsourcetype = 5
Hth
Herman