I noticed that in statements like:
If foo Then
Begin
End Else If bar Then
Begin
End;
The else if bit is replaced by:
Else Begin
If bar Then
Begin
End;
End;
(in other words else if is replaced with else begin if)
Is there a setting to disable this? I can't find anything.
Thanx
C
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found the option to take care of it. There is an option to put single statements in a begin..end block. Since Else if is a single statment for the else, it gets a begin end.
Now, it would be nice to be able to enforce the begin end around a single statement, but keep the else if as a pascal thing. (So keep the option to enforce a begin end around single statements, but it shouldn't apply to else if)
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hm, that's not quite right. The "single statement in begin end" option (still a fairly new feature) should leave "else if" alone. I will add it to the bugs list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
I noticed that in statements like:
If foo Then
Begin
End Else If bar Then
Begin
End;
The else if bit is replaced by:
Else Begin
If bar Then
Begin
End;
End;
(in other words else if is replaced with else begin if)
Is there a setting to disable this? I can't find anything.
Thanx
C
I found the option to take care of it. There is an option to put single statements in a begin..end block. Since Else if is a single statment for the else, it gets a begin end.
Now, it would be nice to be able to enforce the begin end around a single statement, but keep the else if as a pascal thing. (So keep the option to enforce a begin end around single statements, but it shouldn't apply to else if)
Thank you.
Hm, that's not quite right. The "single statement in begin end" option (still a fairly new feature) should leave "else if" alone. I will add it to the bugs list.