Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop through all selected items in a listbox
Message
From
03/01/2000 16:51:58
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00311890
Message ID:
00311937
Views:
21
>>>>For each listitem in olistbox
>>>> * processing
>>>>next
>>>>
>>>>Does that work? Or is there something like that?
>>>
>>>FOR EACH is preferable where you may change the number of elements in the collection.
>>
>>Ed,
>>
>>Would FOR EACH work here? If you're removing entries, will it go through the entire original list??? I thought it would stop too soon.
>
>Nope - that's exactly what FOR EACH handles well. FOR NEXT get caught on the explicit reference to an index.

Ed,

If I try that with _SCREEN.Forms and Releasing() them, it does not release all the forms.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform