>Is there a way, given an item number in a listbox, to know what record that is, or vice versa?
>
>I want to be able to do the following:
>
>FOR i = 1 TO # Of items in listbox
> SEEK the corresponding record in the rowsource
> IF one of the fields has a value of .T.
> WITH that listbox item set the picture to some picture
>ENDFOR
>
>Can someone change my psuedocode to something VFP would like? :)
>
>-Michelle
For n=1 to thisform.listbox.listcount
if seek(thisform.listbox.list(n),"mytable","mytag")=.t.
if mytable.fieldn=.T.
thisform.listbox.picture(n)=....
endif
endif
Endfor
Edward Pikman
Independent Consultant