Forum Discussion
JackLacava
21 days agoCommunity Manager
Just surround the code inside your For loop with a Try/Catch/End Try ( https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/try-catch-finally-statement ), so that it will continue looping even if the code produces an error.
If you want to keep hold of the "good" profiles, create a list outside the loop, then inside the Try block (after all the other code) add the profile to the list; once the loop is over, your new list will only contain "good" profiles (because "bad" ones will have errored out before getting a chance to be added to the list).
Related Content
- 2 months ago
- 2 years ago
- 2 years ago
- 2 years ago