Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox items
Message
From
22/09/1998 14:28:08
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00139556
Message ID:
00139560
Views:
42
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform