Sub Test
If ... Then
...
Else If ... Then
...
End If
If ... Then
...
Else
...
End If
End If
End Sub
Line 62 being the final End IfCompiling code. Error
Error parsing program.
Error description: Missing Keyword: end sub
Occurred on line: 62
End If
No.Thank you Erel, can you confirm please that what you are saying is that End If only occurs if an Else has been used?
Sub Test
1 If ... Then
2 ...
3 Else If a=True Then b=True
4 If b=True Then
5 ...
6 Else
7 ...
8 b= Not(b)
8 End If
9 End If
10 Whatever is next
End Sub
if(...){...;}
else {b=(!a)?true:b;
if (b){...;}
else {...;} //Miss this if without 'a'
b=!b;
}
Sub Test
If ... Then
...
Else If ... Then
...
End If <<<<<<<< Not indented to line up with above If.
If ... Then
...
Else
...
End If
End If
End Sub
Sub Test
If ... Then
...
Else If ... Then
...
End If
If ... Then
...
Else
...
End If
End If
End Sub
Sub Test
1 If ... Then
2 ...
3 Else If a=True Then b=True
4 If b=True Then
5 ...
6 Else
7 ...
8 b= Not(b)
8 End If
9 End If
10 Whatever is next
End Sub
Sub Test
1 If ... Then
2 ...
3 Else If a=True Then
4 b=True
5 If b=True Then
6 ...
7 Else
8 ...
9 b= Not(b)
10 End If
11 End If
12 ...
End Sub
Sub Test
1 If ... Then
2 ...
3 Else If a=True Then
4 b=True
4 END IF
5 If b=True Then
6 ...
7 Else
8 ...
9 b= Not(b)
10 End If
12 ...
End Sub
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?