P PuzzleMedic New Member Oct 24, 2012 #1 Hi all, just downloaded and started using Basic4android and upon compile got an error at my first loop. "Courses" is a list. Loop reads: For Each thisObject As String In Courses If thisObject = className Then found = True Exit For Else found = False End If Next And error code reads: "Compiling code. Error Error parsing program. Error description: Missing Keyword: next Occurred on line: 49 End If" Line 49 is "End If" and line 50 is where I have "Next" written. Pretty sure this is a bug unless there is something unique about searching a list in BasicForAndroid and/or something unique about using a For Each loop. Thanks for the Help.
Hi all, just downloaded and started using Basic4android and upon compile got an error at my first loop. "Courses" is a list. Loop reads: For Each thisObject As String In Courses If thisObject = className Then found = True Exit For Else found = False End If Next And error code reads: "Compiling code. Error Error parsing program. Error description: Missing Keyword: next Occurred on line: 49 End If" Line 49 is "End If" and line 50 is where I have "Next" written. Pretty sure this is a bug unless there is something unique about searching a list in BasicForAndroid and/or something unique about using a For Each loop. Thanks for the Help.
N njesus Member Licensed User Longtime User Oct 24, 2012 #2 try "exit" instead of "exit for"? Last edited: Oct 24, 2012