I have an outer function which contains a loop and an inner function where I'm trying to use Continue For. How can I use the Continue For within the inner function. For example:
Public Function Create(variable1 As String, variable2 As String) As String
Dim settingsList = 'Code to store data in list
For Each setting In settingsList
ProcessSomething(variable1, variable2)
Next
Return ""
End Function
Private Function ProcessSomething(variable1 As String, variable2 As String) As String
If variable1 = "" Then
'Log Error
Continue For
End If
Return ""
End Function
The Private function is called within the Loop of the Public Function, but I see a warning in Visual Studio that says 'Continue For' can only appear inside a 'For' statement. How would you use a Continue For in a case like this or is not possible and not even necessary?