John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
Doesn't break jump out of the foreach loop whereas continue will loop again?
>I think maybe "break" is what you want to use.
>
>~~Bonnie
>
>
>>I need to loop through an entitylist and, based on the record values, look some information up from other tables and write out lines to a text file. I have a test to make sure that there are corresponding records in the related files. If not, I don't want to write out any lines for that record and need to return to the top of the foreach loop. I can't find a jump statement to handle that. I tried goto ForEach, but that didn't work. Do I need to call a separate method from inside the foreach loop and use return or is there something similar to the "loop" command in FoxPro?
>>
>>Thanks.
>>
>>Linda
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only